Do not forget to process rhs on unsupported lhs

This commit is contained in:
Andrey Breslav
2013-12-03 18:39:12 +04:00
parent 6c519bb515
commit e0cf73d989
4 changed files with 28 additions and 2 deletions
@@ -358,11 +358,11 @@ public class JetControlFlowProcessor {
return;
}
generateInstructions(rhs, false);
if (left instanceof JetSimpleNameExpression || left instanceof JetProperty) {
generateInstructions(rhs, false);
// Do nothing, just record write below
}
else if (left instanceof JetQualifiedExpression) {
generateInstructions(rhs, false);
generateInstructions(((JetQualifiedExpression) left).getReceiverExpression(), false);
}
else {