Fix IR generation for string templates containing single entry.

This commit is contained in:
Dmitry Petrov
2016-09-20 15:24:14 +03:00
parent 1c2a676cd6
commit 291d535de7
4 changed files with 61 additions and 20 deletions
+6 -1
View File
@@ -1,4 +1,5 @@
fun foo(): String = ""
val x = 42
val test1 = ""
val test2 = "abc"
@@ -7,4 +8,8 @@ val test4 = """abc"""
val test5 = """
abc
"""
val test6 = "$test1 ${foo()}"
val test6 = "$test1 ${foo()}"
val test7 = "$test1"
val test8 = "${foo()}"
val test9 = "$x"