Files
kotlin-fork/compiler/testData/diagnostics/tests/inner/outerSuperClassMember.kt
T
Alexander Udalov a0a22b7be6 Outer's superclass' method is now inaccessible from nested
Also the diagnostic error message reported the wrong nested class name: it
should be the nested class in the hierarchy which is static, not the class of
the scope where we're checking the accessibility
2013-01-23 20:18:16 +04:00

10 lines
158 B
Kotlin

open class Base {
fun foo() {}
}
class Derived : Base() {
class Nested {
fun bar() = <!INACCESSIBLE_OUTER_CLASS_EXPRESSION!>foo()<!>
}
}