6356807997
#KT-36247 fixed A lot of testdata changed because significanly less (error) descriptors are created for unresolved types, so diagnostics became different.
51 lines
892 B
Kotlin
Vendored
51 lines
892 B
Kotlin
Vendored
// !LANGUAGE: -NestedClassesInEnumEntryShouldBeInner
|
|
|
|
package a
|
|
|
|
|
|
enum class C {
|
|
E1, E2, E3 {
|
|
<!NESTED_CLASS_DEPRECATED!>object O_O<!>
|
|
|
|
fun b() {
|
|
O_O
|
|
}
|
|
|
|
<!NESTED_CLASS_DEPRECATED!>class G<!>
|
|
},
|
|
|
|
E4 {
|
|
fun c() {
|
|
this.B()
|
|
|
|
C.A()
|
|
A()
|
|
//TODO: should be resolved with error
|
|
this.<!UNRESOLVED_REFERENCE!>A<!>()
|
|
}
|
|
};
|
|
|
|
class A
|
|
inner class B
|
|
object O {
|
|
object InO
|
|
}
|
|
}
|
|
|
|
fun f() {
|
|
C.E1.<!UNRESOLVED_REFERENCE!>A<!>
|
|
C.E1.<!UNRESOLVED_REFERENCE!>A<!>()
|
|
C.E2.B()
|
|
|
|
C.E2.<!UNRESOLVED_REFERENCE!>O<!>
|
|
C.E3.<!UNRESOLVED_REFERENCE!>O<!>.<!DEBUG_INFO_MISSING_UNRESOLVED!>InO<!>
|
|
|
|
C.O
|
|
C.O.InO
|
|
C.A()
|
|
C.<!RESOLUTION_TO_CLASSIFIER!>B<!>()
|
|
|
|
C.E3.<!UNRESOLVED_REFERENCE!>O_O<!>
|
|
C.E3.<!UNRESOLVED_REFERENCE!>G<!>()
|
|
}
|