Files
kotlin-fork/compiler/testData/diagnostics/tests/visibility/notOverridingInternal.kt
T
2022-09-29 08:34:13 +00:00

25 lines
348 B
Kotlin
Vendored

// FIR_IDENTICAL
// MODULE: base
// FILE: Base.kt
package base
abstract class Base {
fun foo() = internalFoo()
internal fun internalFoo() {}
}
// MODULE: impl(base)
// FILE: Impl.kt
package impl
import base.*
class Impl : Base() {
fun internalFoo() { /*not an override*/ }
}
fun foo() {
Impl().foo()
Impl().internalFoo()
}