K2: introduce platform-specific visibility checks for overrides + tests

Related to KT-53197
This commit is contained in:
pyos
2022-09-09 13:28:22 +02:00
committed by Space
parent 1ad2ec302b
commit 3a5d75fd22
19 changed files with 427 additions and 11 deletions
@@ -0,0 +1,14 @@
// TARGET_BACKEND: JVM_IR
// MODULE: m1
// FILE: A.kt
open class A {
internal open fun foo() : Int = 1
}
// MODULE: m2(m1)
// FILE: B.kt
class B : A() {
fun foo() : String = "OK"
}