Load Java static members from parents
This commit is contained in:
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
// FILE: I.java
|
||||
|
||||
public interface I {
|
||||
int a = 1;
|
||||
static void foo() {}
|
||||
}
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
public class C implements I {
|
||||
static int b = 1;
|
||||
static void bar() {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
class K : C()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
I.a
|
||||
I.foo()
|
||||
|
||||
C.a
|
||||
C.b
|
||||
C.<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
C.bar()
|
||||
|
||||
K.<!UNRESOLVED_REFERENCE!>a<!>
|
||||
K.<!UNRESOLVED_REFERENCE!>b<!>
|
||||
K.<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
K.<!UNRESOLVED_REFERENCE!>bar<!>()
|
||||
}
|
||||
Reference in New Issue
Block a user