Files
kotlin-fork/compiler/testData/diagnostics/tests/visibility/invisiblePrivateThroughSubClassSmartCast.kt
T
2022-06-01 16:02:30 +00:00

16 lines
195 B
Kotlin
Vendored

// FIR_IDENTICAL
// SKIP_TXT
abstract class A {
fun foo(a: A) {
a.prv()
if (a is B) {
a.prv()
}
}
private fun prv() {}
}
abstract class B : A()