[vala] Mark the inner expression of unary increment/decrement to be lvalue
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Mark the inner expression of unary increment/decrement to be lvalue
- Date: Mon, 2 May 2011 13:36:58 +0000 (UTC)
commit e2e34637d5535ee3cbf6b55b3019e229d69d0e33
Author: Luca Bruno <lucabru src gnome org>
Date: Mon May 2 15:31:43 2011 +0200
Mark the inner expression of unary increment/decrement to be lvalue
vala/valaunaryexpression.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala
index 930e5ce..a26c3da 100644
--- a/vala/valaunaryexpression.vala
+++ b/vala/valaunaryexpression.vala
@@ -156,6 +156,8 @@ public class Vala.UnaryExpression : Expression {
if (operator == UnaryOperator.REF || operator == UnaryOperator.OUT) {
inner.lvalue = true;
inner.target_type = target_type;
+ } else if (operator == UnaryOperator.INCREMENT || operator == UnaryOperator.DECREMENT) {
+ inner.lvalue = true;
}
if (!inner.check (context)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]