Files
kotlin-fork/idea/testData/intentions/objectLiteralToLambda/ThisReference.kt.after
T
2016-01-14 13:39:00 +03:00

29 lines
557 B
Plaintext
Vendored

// WITH_RUNTIME
class Test {
fun foo() {
bar(object : Runnable {
override fun run() {
println(this)
}
})
// Applicable
bar(Runnable { println(this@Test) })
// Applicable
bar(object : Runnable {
override fun run() {
bar(object : Runnable {
override fun run() {
println(this)
}
})
}
})
}
private fun bar(b: Runnable) {
}
}