diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-22 13:21:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-22 13:21:18 +0000 |
commit | e7606de949fdae93ae51feed80a128511d66a9d3 (patch) | |
tree | d9d9400ee12bbc9250116f753361e16c26caf419 /test/ruby | |
parent | ffb49a7e9b8ed9cc130508ff4306dd1c0a38e6c8 (diff) | |
download | ruby-e7606de949fdae93ae51feed80a128511d66a9d3.tar.gz |
parse.y: primary should not be 0
* parse.y (primary): should not be 0, since it can be a receiver.
[ruby-core:82447] [Bug #13836]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_defined.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_defined.rb b/test/ruby/test_defined.rb index de7ba9cc14..54f461ff03 100644 --- a/test/ruby/test_defined.rb +++ b/test/ruby/test_defined.rb @@ -99,6 +99,10 @@ class TestDefined < Test::Unit::TestCase end end + def test_defined_empty_paren_arg + assert_nil(defined?(p () + 1)) + end + def test_defined_impl_specific feature7035 = '[ruby-core:47558]' # not spec assert_predicate(defined?(Foo), :frozen?, feature7035) |