Kotlin - Type Erasure and Casting

前端 未结 0 1461
南旧
南旧 2021-02-13 20:16

I\'m trying to understand how a ClassCastException can be thrown from code, where as far as I understand, the type being cast to has been erased.

Example

相关标签:
回答
  • 消灭零回复
提交回复
热议问题