Skip to content

#1589 Move duplicate qualified modifier error to new format #2897

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

Conversation

lorandszakacs
Copy link
Contributor

This was a rather niched error message, since most of the time it is superseded by other errors.

This corresponds to the Parsers:1703 index from the issue description.

P.S. I now realized that I will be leaving to areas with no internet soon... so hopefully all is well with the PR, otherwise I'll have to address it in a few days 😟

val kind = "Syntax"
val msg = s"duplicate private/protected qualifier"
val explanation =
hl"""It is not allowed to combine `private` and `protected` modifiers even if they are qualified to different scopes""".stripMargin
Copy link
Contributor

Choose a reason for hiding this comment

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

You do not need .stripMargin here.

Copy link
Contributor

Choose a reason for hiding this comment

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

You also do not need """ for the string, " is better.

@@ -93,7 +93,8 @@
ModifiersNotAllowedID,
WildcardOnTypeArgumentNotAllowedOnNewID,
ImplicitFunctionTypeNeedsNonEmptyParameterListID,
WrongNumberOfParametersID
WrongNumberOfParametersID,
DuplicatePrivateProtectedQualifierID
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a , after DuplicatePrivateProtectedQualifierID

@lorandszakacs lorandszakacs force-pushed the errmsg/lorandszakacs_parser_1703 branch from be34653 to 027b94f Compare July 23, 2017 17:54
@lorandszakacs
Copy link
Contributor Author

@nicolasstucki, I addressed the issues. Thanks!

@nicolasstucki nicolasstucki merged commit 4ecb1f7 into scala:master Jul 24, 2017
@nicolasstucki
Copy link
Contributor

@lorandszakacs thanks a lot!

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