mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
Basic invokedynamic string concatenation support
This commit is contained in:
14
compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt
vendored
Normal file
14
compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user