Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"sealed abstract" is not necessary since "sealed" is enough. #2

Merged
merged 1 commit into from
Feb 8, 2012

Conversation

joa
Copy link
Contributor

@joa joa commented Feb 8, 2012

Removed "abstract" from "sealed abstract" since it is somewhat confusing.
A trait is abstract by definition so there is no need to declare it abstract again.

sealed trait A case object B extends A case object C extends A

is the same as

sealed abstract trait A case object B extends A case object C extends A

…a trait as "abstract" is somewhat confusing because a trait is abstract by definition.
mariusae added a commit that referenced this pull request Feb 8, 2012
"sealed abstract" is not necessary since "sealed" is enough.
@mariusae mariusae merged commit 01359f9 into twitter:master Feb 8, 2012
akirakoyasu pushed a commit to akirakoyasu/effectivescala that referenced this pull request Sep 4, 2014
akirakoyasu pushed a commit to akirakoyasu/effectivescala that referenced this pull request Sep 4, 2014
mariusae pushed a commit that referenced this pull request Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants