Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/anonymousObjectByDelegate.kt
T
2020-07-20 14:38:17 +03:00

17 lines
230 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 = this.<!UNRESOLVED_REFERENCE!>x<!>) {}