Skip to content

Fix #11872, correct error msg when modifier flag is not allowed #11878

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 25, 2021

Conversation

bjornregnell
Copy link
Contributor

@bjornregnell bjornregnell commented Mar 24, 2021

ModifierNotAllowedForDefinition now takes a FlagSet instead of just a Flag, which makes sense as it should report error for the flags used even if more than one and Flag <: FlagSet. And then the hard-coded Erased is replaced by the actual flag: FlagSet.

@bjornregnell bjornregnell changed the title Enable correct error msg when modifier flag is not allowed, fix #11872 correct error msg when modifier flag is not allowed, fix #11872 Mar 24, 2021
@bjornregnell bjornregnell changed the title correct error msg when modifier flag is not allowed, fix #11872 Fix #11872, correct error msg when modifier flag is not allowed Mar 24, 2021
@bjornregnell
Copy link
Contributor Author

bjornregnell commented Mar 24, 2021

I can not claim that I understand the checking in general, so good if someone can verify the the wider type in param of ModifierNotAllowedForDefinition is ok.

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@bjornregnell Can you rebase this to latest master force push? You had the bad luck to push your PR in top of a cursed master that failed all derived PRs. But that's fixed now.

@bjornregnell
Copy link
Contributor Author

@odersky Thanks. Rebased and force-pushed just now.

@odersky
Copy link
Contributor

odersky commented Mar 25, 2021

Thanks for the fast reaction! That way it can still go in 3.0 RC2.

@odersky odersky merged commit 480cc0f into scala:master Mar 25, 2021
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