diff options
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1787,6 +1787,9 @@ mlhs_node : user_variable } | primary_value call_op tIDENTIFIER { + if ($2 == tANDDOT) { + yyerror1(&@2, "&. inside LHS of multiple assignment"); + } /*%%%*/ $$ = attrset(p, $1, $2, $3, &@$); /*% %*/ @@ -1801,6 +1804,9 @@ mlhs_node : user_variable } | primary_value call_op tCONSTANT { + if ($2 == tANDDOT) { + yyerror1(&@2, "&. inside LHS of multiple assignment"); + } /*%%%*/ $$ = attrset(p, $1, $2, $3, &@$); /*% %*/ |