Priority
Show-stopper
Type
Bug 
State
Fixed 
Assignee
Eugene Pasynkov 
Subsystem
Code Analysis 
Affected versions
Fixed in
Fixed in build
Next build 
Build
240
Fixed in build
241
  • Submitted by   Rich Strangfeld
    3 years ago (06 Aug 2006 16:52)
  • Updated by Rich Strangfeld
    3 years ago (09 Sep 2006 13:33)
  • Jira: RSRP-24678
    (history, comments)

RSRP-24678

Spurious "cannot change access modifiers" warning

0
If in assembly (and namespace) A I have:

protected internal abstract bool IsHierarchical { get; }

and in assembly (and namespace) B I implement it as:

protected override bool IsHierarchical { get { return true; }}

then I get a red underline on my "get" with a resharper warning

"Cannot change access modifiers when overriding 'PROTECTED_OR_INTERNAL' inherited member 'IsHierarchical.get'.

If I change my implementation to say "protected internal override", as the warning seems to suggest, I get a compiler error. I think the resharper warning is wrong.

Thanks!
  • Rich


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments