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

REPL gives error after an import with repeating name #5655

Closed
scabug opened this issue Apr 10, 2012 · 3 comments
Closed

REPL gives error after an import with repeating name #5655

scabug opened this issue Apr 10, 2012 · 3 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Apr 10, 2012

Following code causes it to give error. Not sure if this is a bug or a feature

scala> object x { def x={} }
defined module x

scala> import x._
import x._

scala> exit
<console>:7: error: not found: value x
import x._
       ^

scala> 1
<console>:7: error: not found: value x
import x._
       ^
@scabug
Copy link
Author

scabug commented Apr 10, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5655?orig=1
Reporter: Amitabh (amitabh)
Affected Versions: 2.9.0-1, 2.9.1
Other Milestones: 2.10.0

@scabug
Copy link
Author

scabug commented Apr 11, 2012

@dcsobral said:
Note that the proper way to exit REPL is :quit or :q. Usually, exit will work, though I have noticed it doesn't when REPL was started from SBT.

I can reproduce the error, at any rate, also on Windows (Vista 64), with a somewhat old version of trunk.

@scabug
Copy link
Author

scabug commented May 3, 2012

@paulp said:
03e3a40951 . I'm closing this but I'm aware that you can't outrun the ambiguity; the repl namespace management will be revamped.

@scabug scabug closed this as completed May 3, 2012
@scabug scabug added the repl label Apr 7, 2017
@scabug scabug added this to the 2.10.0-M3 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants