summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 42d24f61dc..2074cb6730 100644
--- a/parse.y
+++ b/parse.y
@@ -1100,6 +1100,11 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
$$ = dispatch3(opassign, $$, $4, $5);
%*/
}
+ | primary_value tCOLON2 tCONSTANT tOP_ASGN command_call
+ {
+ yyerror("constant re-assignment");
+ $$ = 0;
+ }
| primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_call
{
/*%%%*/