Files
kotlin-fork/compiler/testData/diagnostics/tests/visibility/packagePrivateStatic.kt
T
2022-11-11 13:30:35 +00:00

41 lines
499 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-53441
// FILE: foo/Base.java
package foo;
class Base {
protected static void foo() {}
protected void bar() {}
public static void baz() {}
}
// FILE: foo/Derived.java
package foo;
public class Derived extends Base {}
// FILE: main.kt
package bar
import foo.Derived
class Impl : Derived() {
fun test() {
foo()
bar()
}
}
fun test() {
Derived.baz()
}
// FILE: withImport.kt
import foo.Derived.baz
fun test() {
baz()
}