Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/inheritanceStaticMethodFromInterface.fir.kt
T

33 lines
328 B
Kotlin
Vendored

// 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() {
I.a
I.foo()
C.a
C.b
C.foo()
C.bar()
K.a
K.b
K.foo()
K.bar()
}