Files
kotlin-fork/js/js.translator/testData/box/expression/stringClass/objectToStringCallInTemplate.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

20 lines
300 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1112
package foo
class A(var i: Int) {
override fun toString() = "a$i"
}
fun box(): String {
var p = A(2);
var n = A(1);
if ("$p$n" != "a2a1") {
return "fail1"
}
if ("${A(10)}" != "a10") {
return "fail2"
}
return "OK"
}