1
0
Fork 0
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:
nobu 2017-08-15 13:53:38 +00:00
parent a70804da54
commit aa0f1dcbda

View file

@ -4673,6 +4673,7 @@ singleton : var_ref
case NODE_ARRAY: case NODE_ARRAY:
case NODE_ZARRAY: case NODE_ZARRAY:
yyerror("can't define singleton method for literals"); yyerror("can't define singleton method for literals");
break;
default: default:
value_expr($3); value_expr($3);
break; break;