dfa: add a test for assignment with side effects inside method calls (IDEA-145401, IDEA-CR-5542)

This commit is contained in:
peter
2015-10-12 13:33:37 +02:00
parent 69f46fd336
commit 67bfef7b1d
@@ -6,4 +6,14 @@ class Contracts {
return x && <warning descr="Condition '!(x = false)' is always 'true' when reached">!(x =<caret> false)</warning>;
}
public void testSideEffectInsideCall() {
if (a()) {
System.out.println();
}
}
private boolean a() {
return x = false;
}
}