ruby-changes:47485
From: nobu <ko1@a...>
Date: Tue, 15 Aug 2017 22:53:44 +0900 (JST)
Subject: [ruby-changes:47485] nobu:r59601 (trunk): parse.y: removed useless check
nobu 2017-08-15 22:53:38 +0900 (Tue, 15 Aug 2017) New Revision: 59601 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59601 Log: parse.y: removed useless check * parse.y (singleton): literal nodes are always value expressions, no check is necessary. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 59600) +++ parse.y (revision 59601) @@ -4673,6 +4673,7 @@ singleton : var_ref https://github.com/ruby/ruby/blob/trunk/parse.y#L4673 case NODE_ARRAY: case NODE_ZARRAY: yyerror("can't define singleton method for literals"); + break; default: value_expr($3); break; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/