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
The following code emits an error in dotty but not scalac:
object A { def foo: Int = 1 } object B { def foo: Int = 2 } object C { import A._ import B._ def foo: Int = 3 println(foo) }
13 | println(foo) | ^^^ | reference to `foo` is ambiguous | it is both imported by import A._ | and imported subsequently by import B._
This is of course incorrect, the reference is not ambiguous, it must be C.foo.
C.foo
The text was updated successfully, but these errors were encountered:
184efe1
Merge pull request #2327 from dotty-staging/fix-#2324
206ba59
Fix #2324: Check contexts in right order when looking for idents
No branches or pull requests
The following code emits an error in dotty but not scalac:
This is of course incorrect, the reference is not ambiguous, it must be
C.foo
.The text was updated successfully, but these errors were encountered: