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 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

This comment has been minimized.

Copy link
Author

@scabug 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 Jun 9, 2012
@scabug

This comment has been minimized.

Copy link
Author

@scabug 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.