From af4ba5c12a54cff78cb46832132e7dc8c4fd86cc Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 23 Jun 2017 11:56:48 +0000 Subject: 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 --- node.c | 1 + 1 file changed, 1 insertion(+) (limited to 'node.c') diff --git a/node.c b/node.c index b06e6dc175..f6d551a106 100644 --- a/node.c +++ b/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)"); -- cgit v1.2.3