summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 0c80c87ccc..f0b7358a99 100644
--- a/parse.y
+++ b/parse.y
@@ -1159,8 +1159,14 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
}
| primary_value tCOLON2 tCONSTANT tOP_ASGN command_call
{
+ /*%%%*/
yyerror("constant re-assignment");
$$ = 0;
+ /*%
+ $$ = dispatch2(const_path_field, $1, $3);
+ $$ = dispatch3(opassign, $$, $4, $5);
+ $$ = dispatch1(assign_error, $$);
+ %*/
}
| primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_call
{