diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
| commit | 776f222f590998bc0da95990b9d113b63103c6a6 (patch) | |
| tree | 5f3558168cba03413c22fb5a9b3a7d64e0519df2 /parse.y | |
| parent | 8b8a531c69c5e3d34733cec67cbaa19da8e3517b (diff) | |
| download | ruby-776f222f590998bc0da95990b9d113b63103c6a6.tar.gz ruby-776f222f590998bc0da95990b9d113b63103c6a6.tar.xz ruby-776f222f590998bc0da95990b9d113b63103c6a6.zip | |
2000-03-13
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1573,7 +1573,11 @@ f_args : f_arg ',' f_optarg ',' f_rest_arg opt_f_block_arg $$ = NEW_ARGS(0, 0, -1); } -f_norm_arg : tIDENTIFIER +f_norm_arg : tCONSTANT + { + yyerror("formal argument must not be constant"); + } + | tIDENTIFIER { if (!is_local_id($1)) yyerror("formal argument must be local variable"); |
