sealed trait Color // exhaustiveness checking from compiler on case/match
final case object Red extends Color
final case object Green extends Color
Viewed 379 times
(
| Print
) this page.