Skip to content

Commit c6fa667

Browse files
nobuheadius
authored andcommitted
[Feature #21572] Syntax error at capture in alternation pattern
Should fail even with `-c` option.
1 parent e54ad08 commit c6fa667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/pattern_matching_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
in [0, 0] | [0, a]
494494
end
495495
RUBY
496-
}.should raise_error(SyntaxError, /illegal variable in alternative pattern/)
496+
}.should raise_error(SyntaxError)
497497
end
498498

499499
it "support underscore prefixed variables in alternation" do

0 commit comments

Comments
 (0)