eed3si9n / sjson-new

a typeclass based JSON codec that's backend independent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.