Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/protectedVisibility/innerProtectedClass.fir.kt
T
pyos e6d923f65c FIR: rename HIDDEN to INVISIBLE_REFERENCE
Some of them should be INVISIBLE_MEMBER though
2021-04-21 16:18:21 +03:00

14 lines
251 B
Kotlin
Vendored

open class BaseClass() {
protected class Nested(val x: Int, protected val y: Int)
protected fun foo() = Nested(1, 2)
}
class Foo : BaseClass() {
fun bar() {
val f = foo()
f.x
f.<!INVISIBLE_REFERENCE!>y<!>
}
}