both methods have same erasure, yet neither overrides the other

蔚落 2023-07-08 09:24 54阅读 0赞

文章目录

  • both methods have same erasure, yet neither overrides the other
        • 1、编译报错 both methods have same erasure, yet neither overrides the other
        • 2、为什么呢
        • 3、如何解决

both methods have same erasure, yet neither overrides the other


1、编译报错 both methods have same erasure, yet neither overrides the other

编译报错的意思是,两个方法在类型擦除后,具有相同的原生类型参数列表,但是也不能覆盖另一个方法

代码如下

发表评论

表情:
评论列表 (有 0 条评论,54人围观)

还没有评论,来说两句吧...

相关阅读