K2: make qualifier & classifier the same tower level

#KT-65789 Fixed
#KT-38031 Fixed
This commit is contained in:
Mikhail Glukhikh
2024-03-05 11:42:15 +01:00
committed by Space Team
parent d6e67e43f9
commit 0f53ee64d6
10 changed files with 33 additions and 22 deletions
@@ -1,3 +1,5 @@
// ISSUE: KT-38031
// FILE: W.java
public class W {
public static class E {
@@ -11,7 +13,7 @@ public class W {
// FILE: main.kt
fun main() {
W.E().length // ambiguity in old FE, resolved to static method in FIR
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
}