K2: fix visibility checks for static overrides via imported from static

#KT-53441 In Progress
This commit is contained in:
Mikhail Glukhikh
2022-10-27 12:11:21 +02:00
committed by Space Team
parent cc1a094b6c
commit f070401bb5
13 changed files with 107 additions and 43 deletions
@@ -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()
}