[324] Code reformatter bug when property name clashes with ambiguous enum name...

When reformatting the code snippet below, the System.DayOfWeek reference is
incorrectly realigned to the TestClass.DayOfWeek property.
This is the most minimal example I could boil it down to (after extracting
it from a very large multi-project solution).

using TestNamespace;

public class TestClass
{
public TestClass()
{
TestClass1 a;
object b = System.DayOfWeek.Friday;
}

public DayOfWeek DayOfWeek
{
get { return DayOfWeek.Monday; }
}
}

namespace TestNamespace
{
public class TestClass1 { }

public enum DayOfWeek
{
Sunday,
Monday,
Tuesday,
Wednesday,
}
}


Nato


1 comment
Comment actions Permalink

Hello,

We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-34372.

Best regards,
- Development Team.


0

Please sign in to leave a comment.