interface A1<T> {
fun f1(t: T)
}
class B1 : A1<Any> {
override fun f1(t: Any) {
}
}
interface A2<T: String>: A1<T> {
fun f2(t: T)
}
class B2 : B1, A2<String> {
override fun f1(t: String) {
}
override fun f2(t: String) {
}
}
B2错误:键入参数T&#39; A1&#39;具有不一致的值:Any,String
如何解决这个问题?