-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Flatten lifts out anonymous module vals without making sure that lifted names do not conflict #415
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
This should be solved by #420 @DarkDimius can you check and close the issue if that's the case? |
After applying 7b6964a the problem persists. |
After some investigation, it looks like the test checks the wrong condition. Module vals are not lifted out; they remain in the scope where they were defined first. So there's no reason why they should have unique names. |
The check suggests that they start to clash only after flatten, that is, before flatten the names were unique. If they are not lifted out, what made them clash? |
This: (in TreeChecker)
) On Sun, Mar 22, 2015 at 7:00 PM, Dmitry Petrashko [email protected]
Martin Odersky |
ahh, I get it. |
Shown by
./tests/pos/zoo.scala
The text was updated successfully, but these errors were encountered: