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

9 lines
175 B
Kotlin
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 { a + <selection>b</selection> } }
}