Skip to content
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

Imports shadowing in same scope #4831

Closed
scabug opened this issue Jul 24, 2011 · 2 comments
Closed

Imports shadowing in same scope #4831

scabug opened this issue Jul 24, 2011 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Jul 24, 2011

import actors.{Reaction => Actor}
import actors.Actor
 
object test extends App {
  println(classOf[Actor])
}

Here reference to Actor should be ambiguous, however compiler thinks that Actor here is Reaction class (if you swap imports, behavior will be different).

@scabug
Copy link
Author

scabug commented Jul 24, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4831?orig=1
Reporter: @Alefas
Affected Versions: 2.9.0
Other Milestones: 2.10.0

@scabug scabug closed this as completed Jun 9, 2012
@scabug
Copy link
Author

scabug commented Jun 9, 2012

@retronym said:
Fixed in 30ef129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants