@twitbrainless: Yup, non-case classes can be used in an alias syntax but, as you've suggested, it's required to provide an unapply method to make things work. See PatternMatching.scala for an example.
unapply
@twitbrainless:
Yup, non-case classes can be used in an alias syntax but, as you've suggested, it's required to provide an
unapply
method to make things work. See PatternMatching.scala for an example.