4042214bb2
- The inspection now works in more cases, so the test data had to be updated accordingly
29 lines
547 B
Plaintext
Vendored
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) {
|
|
|
|
}
|
|
} |