FIR: Add test for discrepancy in call resolution for qualifiers with old FE

^KT-38031 Open
This commit is contained in:
Denis Zharkov
2020-04-06 12:29:24 +03:00
parent 03fb49bb38
commit 4cd93a9fec
4 changed files with 33 additions and 0 deletions
@@ -0,0 +1,17 @@
// 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.E().length // ambiguity in old FE, resolved to static method in FIR
W.E.length // resolved to static field in FIR and old FE
W.E.<!UNRESOLVED_REFERENCE!>w<!> // resolved to static field in FE
}