diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-15 13:53:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-15 13:53:38 +0000 |
commit | 70a71f42ad4382d4e9ca34b20cf85b1062a317fb (patch) | |
tree | 3d271db969a29e6b21109b34832b4748354ae30a /parse.y | |
parent | 4b6fa71cc27a56e81f3683dbdb35213fe1f172d7 (diff) | |
download | ruby-70a71f42ad4382d4e9ca34b20cf85b1062a317fb.tar.gz |
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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |