Skip to content

Fix #5015: disallow empty enum definition #6002

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

Merged
merged 2 commits into from
Mar 6, 2019

Conversation

liufengyun
Copy link
Contributor

Fix #5015: disallow empty enum definition

@liufengyun liufengyun merged commit 5cb4a1a into scala:master Mar 6, 2019
@liufengyun liufengyun deleted the fix-5015 branch March 6, 2019 16:28
allanrenucci added a commit to dotty-staging/dotty that referenced this pull request Mar 10, 2019
- Reject enums with no case instead of empty enums.
- Remove special case in parser by using the `tenmplate` parser
  to enforce enums have bodies.
allanrenucci added a commit that referenced this pull request Mar 10, 2019
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.

3 participants