scala-supertagged
scala-supertagged copied to clipboard
Make NewType and Extractor irrefutable extractors
TL;DR: This way they won't disable exhaustiveness checking.
The documentation for irrefutable extractors is pretty terse in the 2.12 spec, but the use of Some
explicitly called out in the 2.13 spec should still work in 2.12.
This change shouldn't cause any trouble in earlier versions (tested as far back as 2.10.6)