Report error when try to access to static field which come from many sources

This commit is contained in:
Zalim Bashorov
2015-10-08 21:28:37 +03:00
parent da00ddfc3e
commit e9b138557b
8 changed files with 344 additions and 1 deletions
@@ -0,0 +1,32 @@
// FILE: A.java
public interface A {
int field = 1;
}
// FILE: B.java
public interface B {
String field = 1;
}
// FILE: E.java
public class E implements A, B {
}
// FILE: O.java
public class O implements A, B {
public static double field = 1;
}
// FILE: test.kt
fun test() {
A.field
B.field
E.<!OVERLOAD_RESOLUTION_AMBIGUITY!>field<!>
O.field
}