Files
Mikhail Glukhikh 0f53ee64d6 K2: make qualifier & classifier the same tower level
#KT-65789 Fixed
#KT-38031 Fixed
2024-03-13 14:57:34 +00:00

20 lines
506 B
Kotlin
Vendored

// ISSUE: KT-38031
// FILE: W.java
public class W {
public static class E {
public static String w = "";
}
public static String E() {return "";}
public static final String E = "";
}
// FILE: main.kt
fun main() {
W.<!OVERLOAD_RESOLUTION_AMBIGUITY!>E<!>().<!UNRESOLVED_REFERENCE!>length<!> // ambiguity in both FIR / old FE
W.E.<!UNRESOLVED_REFERENCE!>length<!> // resolved with error to the class W.E in FIR and old FE
W.E.w // resolved to static field W.e.W in FE
}