5d92453532
#KT-1174 In Progress
13 lines
278 B
Kotlin
13 lines
278 B
Kotlin
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!!
|
|
}
|