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

10 lines
172 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 { val a1 = a
bar { a1 + b } }
}