Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/inheritance/nestedClassesFromInterface.fir.kt
T
Denis Zharkov f71a56e742 FIR: Fix test data after rewritten scope structure
Mostly, the semantics for statics/companions has been changed there
Fixed test data now is much closer to semantics of old FE
2020-05-15 16:04:44 +03:00

28 lines
448 B
Kotlin
Vendored

// FILE: A.java
public interface A {
public class A_ {}
}
// FILE: 1.kt
interface B {
class B_
}
class X: A {
val a: A_ = <!UNRESOLVED_REFERENCE!>A_<!>()
val b: A.A_ = A.A_()
companion object {
val a: A_ = <!UNRESOLVED_REFERENCE!>A_<!>()
}
}
class Y: B {
val a: B_ = <!UNRESOLVED_REFERENCE!>B_<!>()
val b: B.B_ = B.B_()
companion object {
val b: B_ = <!UNRESOLVED_REFERENCE!>B_<!>()
}
}