Version Used:
Latest main (55bc2b7)
Steps to Reproduce:
MyClass cl = new(); // 1
cl.MyProperty = 5;
void M()
{
MyClass cl = new(); // 2
cl.MyProperty = 5;
}
class MyClass
{
public int MyProperty { get; set; }
}
Expected Behavior:
IDE0017 is reported both in case // 1 and case // 2
Actual Behavior:
IDE0017 is reported only for case // 2
Version Used:
Latest main (55bc2b7)
Steps to Reproduce:
Expected Behavior:
IDE0017is reported both in case// 1and case// 2Actual Behavior:
IDE0017is reported only for case// 2