mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y: removed useless check
* parse.y (singleton): literal nodes are always value expressions, no check is necessary. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a70804da54
commit
aa0f1dcbda
1 changed files with 1 additions and 0 deletions
1
parse.y
1
parse.y
|
@ -4673,6 +4673,7 @@ singleton : var_ref
|
|||
case NODE_ARRAY:
|
||||
case NODE_ZARRAY:
|
||||
yyerror("can't define singleton method for literals");
|
||||
break;
|
||||
default:
|
||||
value_expr($3);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue