Inaccessible outer class member is now an error
#KT-1174 In Progress
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
open class Outer<T> {
|
||||
class Nested<U> : Outer<U>() {
|
||||
fun bar(): U = foo()
|
||||
fun baz(): U = super.foo()
|
||||
}
|
||||
class Nested2 : Outer<String>() {
|
||||
fun bar(): String = foo()
|
||||
fun baz(): String = super.foo()
|
||||
}
|
||||
|
||||
fun foo(): T = null!!
|
||||
}
|
||||
Reference in New Issue
Block a user