In scala, how could a covariant type parameter be an upper bound of an abstract type, but not another invariant type parameter?

后端 未结 0 336
春和景丽
春和景丽 2021-01-29 03:48

The following code demonstrates it clearly:

trait Poly1Group[-IUB, +OUB] {

  trait Case[-I <: IUB] {

    type Out &         


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