import foo.A import foo.B class C : A() { override fun foo(x: MutableList?, y: String?): B<*>? { throw UnsupportedOperationException() } }