ReSharper 2.0.211 highlighting request


In the code above ReShaper highlights parameter field in method UseField(int field) with the following warning message: "Parameter 'field' hides field 'int n3.c.field'". This message has no sence in this situation because field is not accessible in derived classes and parameter can not be used in this base class.

May be it will be better not to show warning in similar situations.

3 comments
Comment actions Permalink

Fixed in 213

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Somov Alexander" <no_mail@jetbrains.com> wrote in message
news:2186640.1134634458228.JavaMail.itn@is.intellij.net...

 {
> public abstract class c
> {
> public c()
> {
> field = 23;
> }
>
> public void UseField()
> {
> UseField(field);
> }
>
> protected abstract void UseField(int field);
>
> private int field;
> }
> }]]>

>

In the code above ReShaper highlights parameter field in method
UseField(int field) with the following warning message: "Parameter 'field'
hides field 'int n3.c.field'". This message has no sence in this situation
because field is not accessible in derived classes and parameter can not
be used in this base class.

>

May be it will be better not to show warning in similar situations.



0
Comment actions Permalink

Fixed because of this message or regardless of it and if so how can I discover such fixes in future in order to not post redundant bug reports?

0
Comment actions Permalink

Hello Alexander,

for that you need to use our tracker at
http://www.intellij.net/tracker/resharper/browse. And it's not so difficult,
believe me :)


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Fixed because of this message or regardless of it and if so how can I
discover such fixes in future in order to not post redundant bug
reports?



0

Please sign in to leave a comment.