Files
kotlin-fork/plugins/uast-kotlin/testData/StringTemplateComplexForUInjectionHost.kt
T
Vyacheslav Gerasimov 8723ad4f46 Switch to 191 platform
2019-04-22 21:52:19 +03:00

18 lines
391 B
Kotlin
Vendored

val muchRecur = "${"${"${"abc"}"}"}"
val case4 = "a ${"literal"} z"
val case5 = "a ${"literal"} ${"literal"} z"
val literalInLiteral = "a ${"literal$case4"} z"
val literalInLiteral2 = "a ${"literal$case4".repeat(4)} z"
fun simpleForTemplate(i: Int = 0) = "$i"
fun foo() {
println("$baz")
val template1 = "${simpleForTemplate()}"
val template2 = ".${simpleForTemplate()}"
}