Files
kotlin-fork/idea/testData/refactoring/introduceVariable/extractToScope/outerItInsideNestedLamba.kt.after
T
2015-11-24 20:40:07 +03:00

7 lines
130 B
Plaintext
Vendored

fun foo(f: (Int) -> Int) = f(0)
fun bar(f: () -> Int) = f()
fun test() {
foo { val it1 = it
bar { (1 + 2) * it1 } }
}