Created
April 1, 2012 13:00
-
-
Save delexi/2275178 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sealed trait Enum { def value: Int } | |
| case class Element1 extends Enum { def value = 1 } | |
| case class Element2 extends Enum { def value = 2 } | |
| case class Element3 extends Enum { def value = 3 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment