History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-28188
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Andrey Simanovsky
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

'Move nested class to outer scope' changes its accessibility

Created: 23 Aug 06 15:11   Updated: 13 Dec 06 20:36
Component/s: Refactoring
Fix Version/s: 3.0, 2.5.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 258
Fixed in build: 400


 Description  « Hide
internal class A
{
}

internal class B
{
public class C : A { }
}

Note that effective accessiblity of C is 'internal', so it is OK that it is derived from internal class.
Apply refactoring 'move to outer scope' to nested class C.

internal class A
{
}

internal class B
{
}

public class C : A { } /* error CS0060: Inconsistent accessibility: base class 'A' is less accessible than class 'C' */

Preferred result:

internal class A
{
}

internal class B
{
}

internal class C : A { } /* accessibility OK */



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.