Basic invokedynamic string concatenation support

This commit is contained in:
Mikhael Bogdanov
2020-09-25 11:59:14 +02:00
parent 88892ec65d
commit 04012951c1
12 changed files with 264 additions and 15 deletions

View 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