UAST: yet another fight with string literals in string literals (KT-20990)

This commit is contained in:
Nicolay Mitropolsky
2017-11-04 00:30:04 +03:00
committed by xiexed
parent 132285ea03
commit 9730d50e10
4 changed files with 41 additions and 5 deletions
+9 -1
View File
@@ -4,4 +4,12 @@ val baz = "dolor"
val foobarbaz = "$foo $bar $baz"
val case4 = "a ${"literal"} z"
val case4 = "a ${"literal"} z"
fun simpleForTemplate(i: Int = 0) = "$i"
fun foo() {
println("$baz")
val template1 = "${simpleForTemplate()}"
val template2 = ".${simpleForTemplate()}"
}