Files
kotlin-fork/compiler/testData/diagnostics/tests/inner/nestedClassExtendsOuterGeneric.kt
T

14 lines
295 B
Kotlin
Vendored

// FIR_IDENTICAL
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!!
}