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

Add warning when fields are shadowed and a language feature shadowedFields to turn this warning off. #6218

Closed
scabug opened this issue Aug 11, 2012 · 1 comment

Comments

@scabug
Copy link

scabug commented Aug 11, 2012

Not a blocker
Might be a handy feature for newbies to recognize when they are shadowing fields. Also handy for debugging when it is not so clear.

And also for indirect cases where the compiler cannot override a var in a constructor of a subclass and is silently creating an immutable field and thus is shadowing.

@scabug
Copy link
Author

scabug commented Aug 11, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6218?orig=1
Reporter: DaveScala (davescala)
Affected Versions: 2.10.0-M6
Duplicates #4762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant