Improve the error message when calling unary with parentheses #17638
cacapouh
started this conversation in
Feature Requests
Replies: 2 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. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually Scala 2 is the converse because "empty apply" is only a warning. So you see both warnings, or you see one error.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Improve the error message to something like '
Do not put parentheses on unary methods
', for the compilation error mentioned in the following issue.#17325
Beta Was this translation helpful? Give feedback.
All reactions