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
Using
Scala compiler version 2.8.0.r21376-b20100408020204 -- Copyright 2002-2010, LAMP/EPFL
I get an error when importing a private object member:
package z { trait L {val x = 1} object O {private val x = 2} class C extends L { def f = { import O._ println(x) } } }
test.scala:8: error: reference to x is ambiguous; it is both defined in trait L and imported subsequently by import O._ println(x) ^ one error found
Note if I move the import O._ outside the function f, everything compiles
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-3285?orig=1 Reporter: Jeppe Nejsum Madsen (nejsum)
Sorry, something went wrong.
@paulp said: It's almost a duplicate of #3160, but the overlap isn't 100%. I bet they'll share a commit though.
@paulp said: Oh, it's totally a duplicate of #2133. I knew it was in there somewhere.
odersky
No branches or pull requests
Using
Scala compiler version 2.8.0.r21376-b20100408020204 -- Copyright
2002-2010, LAMP/EPFL
I get an error when importing a private object member:
test.scala:8: error: reference to x is ambiguous;
it is both defined in trait L and imported subsequently by
import O._
println(x)
^
one error found
Note if I move the import O._ outside the function f, everything compiles
The text was updated successfully, but these errors were encountered: