@@ -241,33 +241,6 @@ def test_decls_for_anonymous_class_or_module
241241 end
242242 end
243243
244- if RUBY_VERSION >= '2.7' && RUBY_VERSION <= '3.0'
245- class TestForArgumentForwarding
246- eval <<~RUBY
247- def foo(...)
248- end
249- RUBY
250- end
251-
252- def test_argument_forwarding
253- SignatureManager . new do |manager |
254- manager . build do |env |
255- p = Runtime . new ( patterns : [ "RBS::RuntimePrototypeTest::TestForArgumentForwarding" ] , env : env , merge : true )
256-
257- assert_write p . decls , <<-EOF
258- module RBS
259- class RuntimePrototypeTest < ::Test::Unit::TestCase
260- class TestForArgumentForwarding
261- def foo: (*untyped) { (*untyped) -> untyped } -> untyped
262- end
263- end
264- end
265- EOF
266- end
267- end
268- end
269- end
270-
271244 module TestForOverrideModuleName
272245 module M
273246 def self . name ( ) 'FakeNameM' end
@@ -389,35 +362,35 @@ def initialize: () -> void
389362 end
390363 end
391364
392- if RUBY_VERSION >= '3.1' && RUBY_VERSION <= "3.3"
393- class TestForYield
394- def m1 ( ) yield end
395- def m2 ( ) yield 42 end
396- def m3 ( ) yield 42 ; yield 42 , 43 end
397- eval 'def m4() yield end'
398- end
365+ class TestForYield
366+ def m1 ( ) yield end
367+ def m2 ( ) yield 42 end
368+ def m3 ( ) yield 42 ; yield 42 , 43 end
369+ eval 'def m4() yield end'
370+ end
399371
400- def test_for_yield
401- SignatureManager . new do |manager |
402- manager . build do |env |
403- p = Runtime . new ( patterns : [ "RBS::RuntimePrototypeTest::TestForYield" ] , env : env , merge : true )
372+ def test_for_yield
373+ omit "Ruby 3.4 uses Prism and needs migration" if RUBY_VERSION >= "3.4"
374+
375+ SignatureManager . new do |manager |
376+ manager . build do |env |
377+ p = Runtime . new ( patterns : [ "RBS::RuntimePrototypeTest::TestForYield" ] , env : env , merge : true )
404378
405- assert_write p . decls , <<~RBS
406- module RBS
407- class RuntimePrototypeTest < ::Test::Unit::TestCase
408- class TestForYield
409- def m1: () { () -> untyped } -> untyped
379+ assert_write p . decls , <<~RBS
380+ module RBS
381+ class RuntimePrototypeTest < ::Test::Unit::TestCase
382+ class TestForYield
383+ def m1: () { () -> untyped } -> untyped
410384
411- def m2: () { (untyped) -> untyped } -> untyped
385+ def m2: () { (untyped) -> untyped } -> untyped
412386
413- def m3: () { (untyped, untyped) -> untyped } -> untyped
387+ def m3: () { (untyped, untyped) -> untyped } -> untyped
414388
415- def m4: () -> untyped
416- end
389+ def m4: () -> untyped
417390 end
418391 end
419- RBS
420- end
392+ end
393+ RBS
421394 end
422395 end
423396 end
0 commit comments