How to cast generic type after isAssignableFrom check in Kotlin?

后端 未结 0 609
死守一世寂寞
死守一世寂寞 2020-12-28 14:33

See the example:


class MyTypeAdapter
    (private val gson: Gson, private val skipPast: TypeAdapterFactory) : TypeAdapter() {
          


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