Files
kotlin-fork/idea/testData/inspectionsLocal/scopeFunctions/letToRun/qualifyThisWithLambda.kt.after
T
Dmitry Jemerov 60874f29fe Inspection for scope functions conversion
#KT-17047 Fixed
2018-01-15 15:37:36 +01:00

20 lines
235 B
Plaintext
Vendored

// WITH_RUNTIME
class C {
fun foo() = "c"
val bar = "C"
}
class D {
fun foo() = "d"
val bar = "D"
}
val d = D()
val x = d.apply {
C().<caret>run {
this@apply.foo() + foo() + this@apply.bar + bar
}
}