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

Key: RSRP-31933
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Lomov
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' breaks code

Created: 15 Nov 06 19:59   Updated: 20 Jun 07 10:59
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: 304


 Description  « Hide
internal class A
{
    protected class B // Move class to outer scope
    {
        protected class A
        {
            protected class B : global::A.B
            {
                
            }
        }
    }
}

Result:

internal class A
{}

public class B
{
    protected class A
    {
        protected class B : B // error CS0146: Circular base class dependency involving 'B.A.B' and 'B.A.B'
        {
                
        }
    }
}

Expected:

internal class A
{}

public class B
{
    protected class A
    {
        protected class B : global::B
        {
                
        }
    }
}


 All   Comments   Work Log   Change History      Sort Order:
Vladimir Reshetnikov - 03 Jun 07 18:25
Fixed in 450