Generic Constraint of Multiple Types

前端 未结 0 1100
予麋鹿
予麋鹿 2020-12-08 14:57

In Kotlin I can create a generic constraint of type T; for example:

interface Foo {
  val a: String
}

class Baz(x: T) {
  init {
         


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