Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/problems/javaQualifier.kt
T
2020-04-07 17:54:55 +03:00

18 lines
428 B
Kotlin
Vendored

// 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
}