Files
kotlin/compiler/testData/codegen/box/strings/stringBuilderAppend.kt
Roman Artemev fb3bd8a9ac [JS BE] Implement accessor inlining optimization (WIP)
- enable constant folding
2019-12-24 19:26:05 +03:00

19 lines
245 B
Kotlin
Vendored

// IGNORE_BACKEND: JS
class A() {
override fun toString(): String {
return "A"
}
}
fun box() : String {
val s = "1" + "2" + 3 + 4L + 5.0 + 6F + '7' + A()
if (s != "12345.06.07A") return "fail $s"
return "OK"
}