New linter option : -Xlint:private-shadow #17644
Closed
schuetzcarl
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the scope of my Bachelor Project supervised by @anatoliykmetyuk,
I would like to add for dotty an equivalent lint warning as the
-Xlint:private-shadow
of Scala 2.It would warn about a private field or a class parameter that shadows a superclass field.
Here is a more concrete example from the Scala 2 issue ( scala/bug#4762 ) :
Beta Was this translation helpful? Give feedback.
All reactions