Generate constant "" for effectively empty string

This commit is contained in:
Dmitry Petrov
2017-07-14 18:27:31 +03:00
parent 389c7d03b7
commit 8c7352e668
3 changed files with 28 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
const val empty = ""
val test1 = ""
val test2 = "abc$empty"
val test3 = "$empty$empty$empty"
// 0 StringBuilder