Properly process constants
This commit is contained in:
@@ -7,7 +7,7 @@ inline fun test(s: (String) -> Unit) {
|
||||
}
|
||||
|
||||
fun box(a: String, b: String?) {
|
||||
val s = a + "1" + "2" + 3 + 4L + b + 5.0 + 6F + '7' + A()
|
||||
val s = a + "1" + "2" + 3 + 4L + b + 5.0 + 6F + '7' + A() + true + false + 1u
|
||||
|
||||
a.plus(b)
|
||||
b?.plus(a)
|
||||
@@ -17,6 +17,9 @@ fun box(a: String, b: String?) {
|
||||
test("123"::plus)
|
||||
}
|
||||
|
||||
// unsigned constant 1u processed as argument (last \u0001)
|
||||
|
||||
// 1 "\\u00011234\\u00015.06.07\\u0001truefalse\\u0001"
|
||||
// 6 INVOKEDYNAMIC makeConcatWithConstants
|
||||
// 0 append
|
||||
// 0 stringPlus
|
||||
Reference in New Issue
Block a user