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

Key: RSRP-28348
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Sergey Shkredov
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' should remove 'new' modifier

Created: 30 Aug 06 11:35   Updated: Monday 19:28
Component/s: Refactorings - Move Type to Outer Scope
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

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

Build: 259
Fixed in build: 798


 Description  « Hide
class Base
{
protected class Nested { }
}

class Derived : Base
{
new protected class Nested { }
}

Move Derived.Nested to outer scope.

class Base
{
protected class Nested { }
}

class Derived : Base
{}

public new class Nested { } /* error CS1530: Keyword new not allowed on namespace elements */

Expected:

class Base
{
protected class Nested { }
}

class Derived : Base
{}

public class Nested { }



 All   Comments   Work Log   Change History      Sort Order:
Vladimir Reshetnikov - 31 Oct 06 11:15
It is not fixed in build 300