Files
kotlin-fork/compiler/testData/psi/StringTemplates.kt
T
2013-09-17 18:10:00 +04:00

23 lines
465 B
Kotlin
Vendored

fun demo() {
val abc = 1
val a = ""
val asd = 1
val bar = 5
fun map(f : () -> Any?) : Int = 1
fun buzz(f : () -> Any?) : Int = 1
val sdf = 1
val foo = 3;
"$this must be$as$t"
"$abc"
"$abc\"
"$"
"$.$.asdf$\t"
"asd\$"
"asd$a"
"asd$a$asd$"
"fosdfasdo${1 + bar + 100}}sdsdfgdsfsdf"
"foo${bar + map {foo}}sdfsdf"
"foo${bar + map { "foo" }}sdfsdf"
"foo${bar + map {
"foo$sdf${ buzz{}}" }}sdfsdf"
}