We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.0.0-RC1
trait X { type M = Int } object Y { type M = String class C extends X { def m: M = 123 } }
7 | def m: M = 123 | ^ | Reference to M is ambiguous, | it is both defined in object Y | and inherited subsequently in class C
It should compile. (It does in Scala 2.x)
The text was updated successfully, but these errors were encountered:
This is an intentional change in what constitutes shadowing: #8622 (the backstory is scala/bug#11921)
Sorry, something went wrong.
Ah ok cool thanks
No branches or pull requests
Compiler version
3.0.0-RC1
Minimized code
Output
Expectation
It should compile. (It does in Scala 2.x)
The text was updated successfully, but these errors were encountered: