summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2023-03-23 13:44:04 -0700
committerJeremy Evans <code@jeremyevans.net>2023-04-24 07:37:20 -0700
commitf8e7048348d022814736d0a7e49f2f2494db6a2f (patch)
treeeecca5b3e7fa827a81d71fe9cdfc6adc41b9afc9 /test
parent73fc81199de5e567e38f7ea9067260eb6866cbf9 (diff)
downloadruby-f8e7048348d022814736d0a7e49f2f2494db6a2f.tar.gz
Allow anonymous memberless Struct
Previously, named memberless Structs were allowed, but anonymous memberless Structs were not. Fixes [Bug #19416]
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_arity.rb1
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