Skip to content

Deprecate class shadowing #514

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
adriaanm opened this issue May 15, 2018 · 5 comments
Closed

Deprecate class shadowing #514

adriaanm opened this issue May 15, 2018 · 5 comments
Milestone

Comments

@adriaanm
Copy link
Contributor

or should this wait until 2.14? (I think I had a ticket on this already but can't find it.)

@adriaanm adriaanm added this to the 2.13.0-M5 milestone May 15, 2018
@dwijnand
Copy link
Member

What's meant by class shadowing?

@adriaanm
Copy link
Contributor Author

adriaanm commented May 15, 2018

class A { class C } ; class B extends A { class C } // A#C is shadowed in B

@adriaanm
Copy link
Contributor Author

There's a ticket somewhere that shows how we get the two Cs confused. Unsoundness ensues.

@smarter
Copy link
Member

smarter commented May 15, 2018

See scala/scala3#4361

@adriaanm adriaanm changed the title deprecate class shadowing Deprecate class shadowing Jun 14, 2018
@smarter
Copy link
Member

smarter commented Jun 26, 2018

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

3 participants