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

11 lines
176 B
Plaintext
Vendored

class A(val a: Int)
class B(val b: Int)
fun foo(f: A.() -> Int) = A(1).f()
fun bar(f: B.() -> Int) = B(2).f()
fun test() {
foo { bar { val b1 = b
a + b1
} }
}