Files
kotlin-fork/compiler/testData/codegen/box/strings/stringBuilderAppend.kt
T
2021-10-02 06:14:35 +00: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"
}