Edoardo Luppi
08/07/2024, 10:09 AMval e = mapOf("one" to "two")
println("example: $e")
The output in 1.9.24 was:
var e = mapOf(to('one', 'two'));
println('example: ' + e);
While in 2.0.20-RC it is:
var e = mapOf(to('one', 'two'));
println('example: ' + toString_0(e));
Was that wanted or is it accidental?
toString_0
is:
function toString_0(_this__u8e3s4) {
var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : toString_1(_this__u8e3s4);
return tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs;
}
function toString_1(o) {
var tmp;
if (o == null) {
tmp = 'null';
} else if (isArrayish(o)) {
tmp = '[...]';
} else if (!(typeof o.toString === 'function')) {
tmp = anyToString(o);
} else {
// Inline function 'kotlin.js.unsafeCast' call
tmp = o.toString();
}
return tmp;
}