diff options
author | Jeremy Evans <code@jeremyevans.net> | 2023-03-23 13:44:04 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2023-04-24 07:37:20 -0700 |
commit | f8e7048348d022814736d0a7e49f2f2494db6a2f (patch) | |
tree | eecca5b3e7fa827a81d71fe9cdfc6adc41b9afc9 /test | |
parent | 73fc81199de5e567e38f7ea9067260eb6866cbf9 (diff) |
Allow anonymous memberless Struct
Previously, named memberless Structs were allowed, but anonymous
memberless Structs were not.
Fixes [Bug #19416]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7587
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_arity.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/ruby/test_arity.rb b/test/ruby/test_arity.rb index d26338e0aa..bd26d5f0f5 100644 --- a/test/ruby/test_arity.rb +++ b/test/ruby/test_arity.rb @@ -65,6 +65,5 @@ class TestArity < Test::Unit::TestCase assert_arity(%w[1 2]) { "".sub!(//) } assert_arity(%w[0 1..2]) { "".sub!{} } assert_arity(%w[0 1+]) { exec } - assert_arity(%w[0 1+]) { Struct.new } end end |