summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 783689aa10..75b0cba312 100644
--- a/parse.y
+++ b/parse.y
@@ -1038,10 +1038,12 @@ arg : lhs '=' arg
| primary_value tCOLON2 tCONSTANT tOP_ASGN arg
{
yyerror("constant re-assignment");
+ $$ = 0;
}
| tCOLON3 tCONSTANT tOP_ASGN arg
{
yyerror("constant re-assignment");
+ $$ = 0;
}
| backref tOP_ASGN arg
{