Files
kotlin/compiler/testData/codegen/bytecodeText/stringOperations/concat.kt
Ting-Yuan Huang 79fcaae991 Implement constant folding in the IR backend for JVM
The newly added pass folds the set of constant functions of the
current backend, plus IrBuiltIns.
2019-03-20 21:02:55 +01:00

16 lines
236 B
Kotlin
Vendored

class A() {
override fun toString(): String {
return "A"
}
}
fun box(a: String, b: String) : String {
val s = a + "1" + "2" + 3 + 4L + b + 5.0 + 6F + '7' + A()
return "OK"
}
// 1 NEW java/lang/StringBuilder