Properly process special symbols during indy-with-constants concatenation
#KT-47320 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// JVM_TARGET: 9
|
||||
|
||||
fun test(a: String, b: String?): String {
|
||||
return a + "\u0001" + 2.toChar() + 3.toChar() + 4L + b + 5.0 + 6F + '7' + b + "\u0002" + 1.toChar()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val test = test("O", "K")
|
||||
return if (test != "O\u0001\u0002\u00034K5.06.07K\u0002\u0001") "fail ${test}" else "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user