blob: 436afd3eaaabf0550420d7fce045cc8dc55c76d1 [file] [log] [blame]
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"
}