mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
13 lines
278 B
Kotlin
Vendored
13 lines
278 B
Kotlin
Vendored
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!!
|
|
}
|