K2: fix visibility checks for static overrides via imported from static
#KT-53441 In Progress
This commit is contained in:
committed by
Space Team
parent
cc1a094b6c
commit
f070401bb5
@@ -6,6 +6,8 @@ package foo;
|
||||
class Base {
|
||||
protected static void foo() {}
|
||||
protected void bar() {}
|
||||
|
||||
public static void baz() {}
|
||||
}
|
||||
|
||||
// FILE: foo/Derived.java
|
||||
@@ -24,3 +26,15 @@ class Impl : Derived() {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
Derived.baz()
|
||||
}
|
||||
|
||||
// FILE: withImport.kt
|
||||
|
||||
import foo.Derived.baz
|
||||
|
||||
fun test() {
|
||||
baz()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user