-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Method unary_~ in class must be called with () argument #17325
Comments
def unary_~ : Double = ... without |
I see, it seems it was not a bug after all. I will close this issue. |
But the error message can be improved |
I will create an Issue to improve the error message. |
This is a "lie". It is deprecated and errors under
The "real problem" for Scala 3 is that the warning is not reported because of the error. This is an old "philosophical" issue, that first you resolve the errors and then you resolve the warnings. Of course, the compiler ought to emit no warnings. The compiler should emit errors, and the linter or IDE should emit warnings (or "suggestions") that might help resolve the errors. |
Compiler version
3.2.2
Minimized code
Output
Expectation
The compilation is successful and the following output is expected to be printed to standard output:
It has been confirmed to work with Scala 2.13.10.
The text was updated successfully, but these errors were encountered: