T 既是 Dialog 又是Popup
class Wrapper<T> (container: Any, private val dialog: T, pageName: String = "") where T:Dialog, T: Popup{
}
T 既是 Dialog 又是Popup
class Wrapper<T> (container: Any, private val dialog: T, pageName: String = "") where T:Dialog, T: Popup{
}
本文标题:kotlin 泛型支持继承多个类型的写法
本文链接:https://www.haomeiwen.com/subject/xnxpfrtx.html
网友评论