summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-24 00:38:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-24 00:38:53 +0000
commit170f4e21d3a4d754d9746028dcd8e5c5401c457a (patch)
tree33457754cf58dafb6f99e352ad48df30c53f5556 /parse.y
parent9146c954ffa4b5112d66273915a2fd74edbb38f3 (diff)
* parse.y (arg): should return 0 after error. [ruby-dev:22360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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
{