Files
kotlin-fork/compiler/testData/codegen/box/fakeOverride/kt49371.kt
T
2021-10-29 12:13:57 +03:00

24 lines
307 B
Kotlin
Vendored

interface Left
interface Right
class Bottom : Left, Right
interface A<T> {
fun f(): T? {
return null
}
}
interface B<T : Left> : A<T> {}
abstract class C<T> : A<T>
abstract class D<T : Right> : C<T>()
class Z : D<Bottom>(), B<Bottom>
fun box(): String {
Z().f()
return "OK"
}