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:
nobu 2017-06-23 11:56:48 +00:00
parent d391697331
commit af4ba5c12a
5 changed files with 12 additions and 5 deletions

View file

@ -761,6 +761,7 @@ x = __ENCODING__
x = x = 1
assert_nil eval("x; nil")
assert_nil eval("1+1; nil")
assert_nil eval("1.+(1); nil")
assert_nil eval("TestParse; nil")
assert_nil eval("::TestParse; nil")
assert_nil eval("x..x; nil")