Introduce Lambda Parameter: Support extraction of string template fragments
This commit is contained in:
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
fun foo(a: Int, s: () -> String = { "cd" }): String {
|
||||
val x = "x${s()}$a"
|
||||
val y = "${a}${s()}x"
|
||||
val z = "xcf$a"
|
||||
return "ab${s()}ef"
|
||||
}
|
||||
Reference in New Issue
Block a user