Skip to content

Instantly share code, notes, and snippets.

@lu4nm3
Created May 16, 2020 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lu4nm3/0faefda142bce17af7a0beeddbc30a1a to your computer and use it in GitHub Desktop.
Save lu4nm3/0faefda142bce17af7a0beeddbc30a1a to your computer and use it in GitHub Desktop.
scala> class EvilEmailAddress(address: String) extends EmailAddress(address)
<console>:14: error: illegal inheritance from sealed class EmailAddress
class EvilEmailAddress(address: String) extends EmailAddress(address)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment