K2: make qualifier & classifier the same tower level
#KT-65789 Fixed #KT-38031 Fixed
This commit is contained in:
committed by
Space Team
parent
d6e67e43f9
commit
0f53ee64d6
+1
-1
@@ -1,6 +1,6 @@
|
||||
FILE: main.kt
|
||||
public final fun main(): R|kotlin/Unit| {
|
||||
Q|W|.R|/W.E*s|().R|kotlin/String.length|
|
||||
Q|W|.<Ambiguity: E, [/W.E, /W.E.E]>#().<Unresolved name: length>#
|
||||
Q|W.E|.<Unresolved name: length>#
|
||||
Q|W.E|.R|/W.E.w*s|
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user