mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Optimize recursive string concatenation
This commit is contained in:
7
compiler/testData/codegen/bytecodeText/constants/partialString.kt
vendored
Normal file
7
compiler/testData/codegen/bytecodeText/constants/partialString.kt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
fun box(): String {
|
||||
val z = 1;
|
||||
return "O" + "K".toString() + z
|
||||
}
|
||||
|
||||
// 1 LDC "OK"
|
||||
// 1 LDC
|
||||
Reference in New Issue
Block a user