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