-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add empty case class params check. Add test. #6982
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, and thank you for opening this PR! 🎉
All contributors have signed the CLA, thank you! ❤️
Commit Messages
We want to keep history, but for that to actually be useful we have
some rules on how to format our commit messages (relevant xkcd).
Please stick to these guidelines for commit messages:
- Separate subject from body with a blank line
- When fixing an issue, start your commit message with
Fix #<ISSUE-NBR>:
- Limit the subject line to 72 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line ("Add" instead of "Added")
- Wrap the body at 80 characters
- Use the body to explain what and why vs. how
adapted from https://chris.beams.io/posts/git-commit
Have an awesome day! ☀️
eb87c78
to
791fcce
Compare
d82cc9a
to
e1b92f0
Compare
27b73c2
to
f222fca
Compare
@allanrenucci can this be merged ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have some broken logic in Desugar.scala
: https://github.com/lampepfl/dotty/blob/073c7aa47672c02932904dcd50bf5693d90d7299/compiler/src/dotty/tools/dotc/ast/Desugar.scala#L449-L451
We should unify both. Let's fix the code in Desugar. Then we probably don't need to report an error in the Parser
@allanrenucci Not exactly sure where
taking care of reporting the |
@allanrenucci On a side note, is there a way to run only a particular test?
does not seem to work. |
Yes. Within sbt:
Alternatively, you can compile a specific file using:
No it comes right after Parser
Yes, but it currently does not report an error when the type parameter list in non empty. Removing |
c84862c
to
8d09c0a
Compare
@allanrenucci done the changes. The Desugar file fix suffices, even for enums |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM. Thanks a lot @ashwinbhaskar!
more than happy to do it 😄 |
Thanks @ashwinbhaskar. Nice fix. |
Just a small last detail. Could you change the commit message to |
Sure, done. |
Fixes #6969