Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/inheritance/statics/hidePrivateByPublic.kt
T
2015-10-08 19:33:29 +03:00

37 lines
583 B
Kotlin
Vendored

// FILE: A.java
class A {
private static int a = 1;
private static void foo() {}
protected static int b = 1;
protected static void bar() {}
}
// FILE: B.java
class B extends A {
public static int a = 1;
public static void foo() {}
public static void foo(int i) {}
public static int b = 1;
public static void bar() {}
public static void bar(int i) {}
}
// FILE: test.kt
fun test() {
A.<!INVISIBLE_MEMBER!>a<!>
A.<!INVISIBLE_MEMBER!>foo<!>()
A.b
A.bar()
B.a
B.foo()
B.foo(1)
B.b
B.bar()
B.bar(1)
}