Incorrect highlighting?

with a base class declaring

protected internal bool virtual SomeMethod(){return true;}

in an inheriting class, R# is highlighting the following as an error that
changes the access level of the method:

protected bool override SomeMethod() { return base.SomeMethod(); }

while the C#2.0 compiler is highlighting

protected internal bool override SomeMethod() { return base.SomeMethod(); }

as changing the access level of the method.

Obviously, I'm wondering why the compiler and the code analyzer are
disagreeing here.


2 comments
Comment actions Permalink

These two methods are located in different projects, or in the same?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Jonathan Choy" <jchoy@applieduw.com> wrote in message
news:dnc42o$vc2$1@is.intellij.net...

with a base class declaring

>

protected internal bool virtual SomeMethod(){return true;}

>

in an inheriting class, R# is highlighting the following as an error that
changes the access level of the method:

>

protected bool override SomeMethod() { return base.SomeMethod(); }

>

while the C#2.0 compiler is highlighting

>

protected internal bool override SomeMethod() { return
base.SomeMethod(); }

>

as changing the access level of the method.

>

Obviously, I'm wondering why the compiler and the code analyzer are
disagreeing here.



0
Comment actions Permalink

ASP.Net 2.0 project on IIS, base class (page class) is in App_Code.

"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:dnc5m1$nud$1@is.intellij.net...

These two methods are located in different projects, or in the same?

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Jonathan Choy" <jchoy@applieduw.com> wrote in message
news:dnc42o$vc2$1@is.intellij.net...

>> with a base class declaring
>>
>> protected internal bool virtual SomeMethod(){return true;}
>>
>> in an inheriting class, R# is highlighting the following as an error that
>> changes the access level of the method:
>>
>> protected bool override SomeMethod() { return base.SomeMethod(); }
>>
>> while the C#2.0 compiler is highlighting
>>
>> protected internal bool override SomeMethod() { return
>> base.SomeMethod(); }
>>
>> as changing the access level of the method.
>>
>> Obviously, I'm wondering why the compiler and the code analyzer are
>> disagreeing here.
>>
>



0

Please sign in to leave a comment.