mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
JVM_IR: fold constant string concatenations
This commit is contained in:
5
compiler/testData/codegen/bytecodeText/stringOperations/constConcat.kt
vendored
Normal file
5
compiler/testData/codegen/bytecodeText/stringOperations/constConcat.kt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
val s = "1" + "2" + 3 + 4L + 5.0 + 6F + '7'
|
||||
val c = "${"1"}2${3}${4L}${5.0}${6F}${'7'}"
|
||||
|
||||
// 0 NEW java/lang/StringBuilder
|
||||
// 2 LDC "12345.06.07"
|
||||
Reference in New Issue
Block a user