|
|
|
|
|
by modersky
3655 days ago
|
|
There can be instances of Tree[Nothing], just like there can be instances of List[Nothing]. It just means that in a scenario like this: class Tree[T] { def elem: T }
if t is a Tree[Nothing] then t.elem will not return normally (it might throw an exception instead). |
|