Skip to content

Figure out why overwriting protection doesn't work. #2681

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

Closed
DarkDimius opened this issue Jun 4, 2017 · 2 comments
Closed

Figure out why overwriting protection doesn't work. #2681

DarkDimius opened this issue Jun 4, 2017 · 2 comments
Assignees

Comments

@DarkDimius
Copy link
Contributor

I recall dotty having protection from overwriting a user-defined class with a synthetic class with the same name by name-mangling sythetic one:
#313 (comment)

#2673 (comment) reports that it doesn't work in some cases.

@smarter
Copy link
Member

smarter commented Jun 4, 2017

The check should at least compare the names after normalizing the case.

@odersky
Copy link
Contributor

odersky commented Jan 22, 2018

The check should at least compare the names after normalizing the case.

That looks like a good plan.

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

4 participants