Introduce Variable: Allow choosing extraction scope for expressions in the lambda body
#KT-7720 Fixed
This commit is contained in:
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
fun foo(f: () -> Int) { }
|
||||
|
||||
fun test() {
|
||||
val i = 1 + 2
|
||||
foo(fun(): Int { return i * 3 })
|
||||
}
|
||||
Reference in New Issue
Block a user