-
Notifications
You must be signed in to change notification settings - Fork 21
Same filename as another file causes duplicate object definition with clean builds #2931
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-2931?orig=1 |
@milessabin said: |
@ijuma said: [ijuma@mac]% /opt/scala-2.8.0.Beta1-RC8/bin/fsc test/BarFile.scala test2/BarFile.scala
[ijuma@mac]% |
@milessabin said: |
@ijuma said: |
@ijuma said: |
@milessabin said: |
Steps to reproduce:
(1) Create two files:
src/test/BarFile.scala
src/test2/BarFile.scala
(2) Do clean build
(3) Notice error in problems view "Bar is already defined as object Bar". Also, no classfiles are compiled.
(4) Edit and save test/BarFile.scala
(5) Notice that classfiles are generated and the problems view shows no errors
Of course, in my environment the second BarFile was not in the same project (it was in a jar). Strangely, renaming test/BarFile.scala to test/Bar.scala fixes the problem.
The text was updated successfully, but these errors were encountered: