Joined January 2015
·

falconepl

Poland
·
·

Posted to Aliases in Scala Pattern Matching over 1 year ago

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

Achievements
1 Karma
0 Total ProTip Views