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

33 lines
644 B
Kotlin
Vendored

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