Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/anonymousObjectByDelegate.kt
T
2020-12-16 19:52:30 +03:00

18 lines
245 B
Kotlin
Vendored

// ISSUE #KT-40409
interface A {
var b: B
}
interface B
fun A.test_1() {
object : B by this.b {}
}
fun A.test_2() {
object : B by b {}
}
class D(val x: String, val y: String = <!NO_THIS!>this<!>.<!UNRESOLVED_REFERENCE!>x<!>) {}