This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
trait Foo
class A extends Foo
class B extends Foo
List[Foo](new A(), new B())
error: type mismatch;
found : this.B
required: this.Foo
List[Foo](new A(), new B())
^