mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Generate constant "" for effectively empty string
This commit is contained in:
7
compiler/testData/codegen/bytecodeText/stringOperations/kt19037.kt
vendored
Normal file
7
compiler/testData/codegen/bytecodeText/stringOperations/kt19037.kt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
const val empty = ""
|
||||
|
||||
val test1 = ""
|
||||
val test2 = "abc$empty"
|
||||
val test3 = "$empty$empty$empty"
|
||||
|
||||
// 0 StringBuilder
|
||||
Reference in New Issue
Block a user