Files
kotlin-fork/compiler/testData/diagnostics/tests/visibility/invisiblePrivateThroughSubClass.kt
T
Denis.Zharkov ccc32b4e3b FIR: Refine visibility check for private methods defined in a class
- use-site should be contained within the class that owns callee symbol
- class-representative of dispatch receiver value
should be exactly the same as a container class of a callee (not its subtype)
2022-06-01 16:02:29 +00:00

12 lines
149 B
Kotlin
Vendored

// SKIP_TXT
abstract class A {
fun foo(b: B) {
b.<!INVISIBLE_MEMBER!>prv<!>()
}
private fun prv() {}
}
abstract class B : A()