We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.3.0
class Number(n: Int) val x = Number(3)
2 |val x = Number(3) | ^^^^^^ | Reference to constructor proxy for class Number | shadows outer reference to object Number in package java.lang
java.lang.Number
The text was updated successfully, but these errors were encountered:
I just wanted to point out that this code compiles and run with no error
'class Number(n: Int) val x = new Number(3)'
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Compiler version
3.3.0
Minimized example
Output
Expectation
java.lang.Number
cannot possibly be applied, so one could avoid the errorThe text was updated successfully, but these errors were encountered: