Files
kotlin-fork/idea/testData/intentions/objectLiteralToLambda/ThisReference.kt.after
T
Roman Golyshev 4042214bb2 Fix tests broken by enhanced RedundantSamConstructor inspection
- The inspection now works in more cases, so the test data had to be
updated accordingly
2020-02-20 17:27:41 +03:00

29 lines
547 B
Plaintext
Vendored

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