[Bug] variable in a static function is said to hide private (non-static) member.

public class foo
{
private string bar;

public static foobar
{
string bar = "test";
}
}

variable bar is flagged as hidign internal member bar, but as the function is static, there is no hiding going on at all.

1 comment
Comment actions Permalink

Thank you for the report.
This is definitely a bug, and will be fixed shortly

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Jesse Houwing" <no_mail@jetbrains.com> wrote in message
news:3248193.1122279643237.JavaMail.javamailuser@localhost...

public class foo
{
private string bar;

>

public static foobar
{
string bar = "test";
}
}

>

variable bar is flagged as hidign internal member bar, but as the function
is static, there is no hiding going on at all.



0

Please sign in to leave a comment.