From f8e7048348d022814736d0a7e49f2f2494db6a2f Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 23 Mar 2023 13:44:04 -0700 Subject: Allow anonymous memberless Struct Previously, named memberless Structs were allowed, but anonymous memberless Structs were not. Fixes [Bug #19416] --- test/ruby/test_arity.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.1