Introduce Parameter: Support extraction of string template fragments

This commit is contained in:
Alexey Sedunov
2015-11-18 15:15:32 +03:00
parent 6e8acc6453
commit 1b162e0294
34 changed files with 295 additions and 15 deletions
@@ -0,0 +1,8 @@
fun foo(a: Int, s: String = """c$a
:${a + 1}d"""): String {
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"""
}