|
|
|
@ -209,6 +209,20 @@ class TestClass
@@ -209,6 +209,20 @@ class TestClass
|
|
|
|
|
{ |
|
|
|
|
nested.nested.a = nested.nested.a; |
|
|
|
|
} |
|
|
|
|
}";
|
|
|
|
|
Test<AssignmentMadeToSameVariableIssue> (input, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void TestNoIssueWithCompoundOperator () |
|
|
|
|
{ |
|
|
|
|
var input = @"
|
|
|
|
|
class TestClass |
|
|
|
|
{ |
|
|
|
|
void TestMethod (int a) |
|
|
|
|
{ |
|
|
|
|
a += a; |
|
|
|
|
} |
|
|
|
|
}";
|
|
|
|
|
Test<AssignmentMadeToSameVariableIssue> (input, 0); |
|
|
|
|
} |
|
|
|
|