eed3si9n / sjson-new

a typeclass based JSON codec that's backend independent
Apache License 2.0
36 stars 19 forks source link

unionFormat throws MatchError when non-leaf classes are used #29

Closed dwijnand closed 6 years ago

dwijnand commented 7 years ago

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).

dwijnand commented 7 years ago

Not fixed here.