unionFormat throws MatchError when non-leaf classes are used
dwijnand opened this issue · comments
The pattern guard
if implicitly[Manifest[A1]].runtimeClass == x.getClass
will never be true when A1
is PatternsBasedRepository
and x
is FileRepository
(a subclass of PatternsBasedRepository
).
Not fixed here.