K2: introduce platform-specific visibility checks for overrides + tests
Related to KT-53197
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// MODULE: m1
|
||||
// FILE: A.kt
|
||||
|
||||
open class A {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
internal open fun foo(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MODULE: m2
|
||||
// FILE: B.kt
|
||||
|
||||
class B : A {
|
||||
constructor() /* primary */ {
|
||||
super/*A*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun foo(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user