Introduce Variable: Support extraction of string template fragments

#KT-2089 Fixed
This commit is contained in:
Alexey Sedunov
2015-11-16 16:06:01 +03:00
parent 7dbcceee79
commit f4b4b023a3
40 changed files with 592 additions and 48 deletions
@@ -0,0 +1,9 @@
fun foo(a: Int): String {
val s = """c$a
:${a + 1}d"""
val x = """_${s}_"""
val y = "_$a:${a + 1}d_"
val z = """_c$a:${a + 1}d_"""
val u = "_c$a\n:${a + 1}d_"
return """ab${s}ef"""
}