mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
parse.y: should not warn op method call
* parse.y (void_expr_gen): should warn operator expression style calls only, but not method style calls. [Fix GH-1660] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d391697331
commit
af4ba5c12a
5 changed files with 12 additions and 5 deletions
1
node.c
1
node.c
|
@ -475,6 +475,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
|||
break;
|
||||
|
||||
case NODE_CALL:
|
||||
case NODE_OPCALL:
|
||||
ANN("method invocation");
|
||||
ANN("format: [nd_recv].[nd_mid]([nd_args])");
|
||||
ANN("example: obj.foo(1)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue