Inaccessible outer class member is now an error

#KT-1174 In Progress
This commit is contained in:
Alexander Udalov
2012-12-11 22:30:25 +04:00
parent e76abcb625
commit 5d92453532
35 changed files with 358 additions and 25 deletions
@@ -0,0 +1,12 @@
enum class E {
E1 {
override fun foo() = outerFun() + super.outerFun()
}
E2 {
override fun foo() = E1.foo()
}
abstract fun foo(): Int
fun outerFun() = 42
}