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