Files
kotlin-fork/compiler/testData/diagnostics/tests/imports/ImportProtectedClass.kt
T
Mikhail Glukhikh 0cc861f00b Exposed visibility checking, a set of exposed visibility tests, some test fixes
Effective visibility mechanism introduced.
Local is considered as public, java protected as Kotlin protected, java package private as Kotlin private.
2015-10-07 20:15:16 +03:00

14 lines
266 B
Kotlin
Vendored

package p
import p.Foo.Nested
open class Foo {
protected class Nested
}
class Bar: Foo() {
protected fun foo(): Nested? = null
}
private fun foo(): <!INVISIBLE_REFERENCE!>Nested<!>? = null
private fun bar(): p.Foo.<!INVISIBLE_REFERENCE!>Nested<!>? = null