@@ -83,6 +83,8 @@ def foo: (...) -> void
8383 end
8484
8585 def test_forwarding_parameter
86+ omit_on_jruby! "The WebAssembly parser does not support forwarding parameter syntax"
87+
8688 parse_method_type_with_forwarding ( "(...) -> void" ) . tap do |type |
8789 assert_equal "(...) -> void" , type . to_s
8890 assert_instance_of Types ::Function ::ForwardingParam , type . type . forwarding
@@ -100,6 +102,8 @@ def test_forwarding_parameter
100102 end
101103
102104 def test_forwarding_parameter_with_overload_continuation
105+ omit_on_jruby! "The WebAssembly parser does not support forwarding parameter syntax"
106+
103107 _ , declarations = parse_signature_with_forwarding ( <<~RBS )
104108 class Foo
105109 def foo: (...) -> void
@@ -113,6 +117,8 @@ def foo: (...) -> void
113117 end
114118
115119 def test_forwarding_parameter_rejects_nonleading_parameters
120+ omit_on_jruby! "The WebAssembly parser does not support forwarding parameter syntax"
121+
116122 [
117123 "(?String value, ...) -> void" ,
118124 "(*String values, ...) -> void" ,
@@ -127,6 +133,8 @@ def test_forwarding_parameter_rejects_nonleading_parameters
127133 end
128134
129135 def test_forwarding_parameter_must_be_last
136+ omit_on_jruby! "The WebAssembly parser does not support forwarding parameter syntax"
137+
130138 [
131139 "(..., String) -> void" ,
132140 "(..., ...) -> void" ,
@@ -139,6 +147,8 @@ def test_forwarding_parameter_must_be_last
139147 end
140148
141149 def test_forwarding_parameter_cannot_have_explicit_block
150+ omit_on_jruby! "The WebAssembly parser does not support forwarding parameter syntax"
151+
142152 [
143153 "(...) { () -> void } -> void" ,
144154 "(...) ?{ () -> void } -> void" ,
@@ -150,6 +160,8 @@ def test_forwarding_parameter_cannot_have_explicit_block
150160 end
151161
152162 def test_forwarding_parameter_is_not_allowed_in_block_types
163+ omit_on_jruby! "The WebAssembly parser does not support forwarding parameter syntax"
164+
153165 error = assert_raise ( RBS ::ParsingError ) do
154166 parse_method_type_with_forwarding ( "() { (...) -> void } -> void" )
155167 end
0 commit comments