diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-23 11:56:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-23 11:56:48 +0000 |
commit | af4ba5c12a54cff78cb46832132e7dc8c4fd86cc (patch) | |
tree | b2de6089808cea65aa1d68edbc0632d4d775e527 /test | |
parent | d391697331fc0cdef9c3084e248af0d446cd9dd0 (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_parse.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 4ae2fa273f..030442f9e9 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -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") |