Version Used:
Version 17.0.0 Preview 6.0 [31815.197.d17.0]
Steps to Reproduce:
Insert:
public class Class
{
public void Method()
{
int x = 5;
x = 2;
}
}
Expected Behavior:
public class Class
{
public void Method()
{
int x = 5;
x = 2; <----- analyzer on this line indicating redundant assignment
}
}
Actual Behavior:
No diagnostic is shown.
Version Used:
Version 17.0.0 Preview 6.0 [31815.197.d17.0]
Steps to Reproduce:
Insert:
Expected Behavior:
Actual Behavior:
No diagnostic is shown.