What's the name of an undefined type with a bound (and the opposite)?

前端 未结 0 1536
一生所求
一生所求 2021-01-08 00:19

Let\'s say I have a type hierarchy:

trait Root { type Self <: Root }
class A extends Root { type Self <: A }
class B extends A { type Self <: B }


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