lloydmeta / enumeratum

A type-safe, reflection-free, powerful enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations.
MIT License
1.18k stars 146 forks source link

draft: don't check for the correct param type for empty tree #397

Closed martijnhoekstra closed 2 weeks ago

martijnhoekstra commented 2 weeks ago

p.tree ends up being the empty tree, so it makes no sense to test for it.

Can we just do this? I don't understand the code around it well enough to be sure.

martijnhoekstra commented 2 weeks ago

This needs more work