I have the following base class:
trait Foo
abstract class Bar[A <: Foo](f : A*) extends Foo
I want to then create a subclass:
case class Baz(f : Foo*) extends Bar(f)
However, when I do this the compiler gets upset, telling me that:
inferred type arguments [Seq[Foo]] do not conform to class Bar's type parameter bounds [A <: Foo]
Adding an explicit type parameter to Bar, as in
case class Baz(f : Foo*) extends Bar[Foo](f)
then complains of a type mismatch - found Foo* when required Foo.
What's causing this? How should I get around it?