-
Notifications
You must be signed in to change notification settings - Fork 1.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Improve the error message when calling unary with parentheses #17637
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
Comments
I would expect that I can "elevate" warnings to errors and see the underlying problem. But:
says
The expected warning is not boosted to error. That is, for the text
and
The "meta" issue is that I should be able to ask the compiler to tell me everything it knows about my code. That might include warnings or also open tickets. |
Actually Scala 2 is the converse because "empty apply" is only a warning. So you see both warnings, or you see one error.
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Improve the error message to something like '
Do not put parentheses on unary methods
', for the compilation error mentioned in the following issue.#17325
The text was updated successfully, but these errors were encountered: