Files
kotlin-fork/compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt
T
2020-10-02 11:47:27 +02:00

15 lines
308 B
Kotlin
Vendored

// KOTLIN_CONFIGURATION_FLAGS: RUNTIME_STRING_CONCAT=enable
// JVM_TARGET: 9
class A
inline fun test(s: (String) -> Unit) {
s("456")
}
fun box(a: String, b: String?) {
val s = a + "1" + "2" + 3 + 4L + b + 5.0 + 6F + '7' + A()
}
// 1INVOKEDYNAMIC makeConcatWithConstants
// 0 append
// 0 stringPlus