K2: fix internal visibility checks for overrides #KT-53197 Fixed

This commit is contained in:
Mikhail Glukhikh
2022-07-19 10:50:34 +02:00
committed by Space
parent 40e3e9f6c7
commit 166965e559
15 changed files with 172 additions and 33 deletions
@@ -0,0 +1,22 @@
// FIR_IDENTICAL
// MODULE: m1
// FILE: A.kt
open class A {
internal open fun foo() : Int = 1
}
open class AG<T> {
internal open fun bar(arg: T) = arg
}
// MODULE: m2(m1)
// FILE: B.kt
class B : A() {
fun foo() : String = ""
}
class BG : AG<String>() {
fun bar(arg: Int) = arg
}