Skip to content

Commit 059757b

Browse files
committed
fix over-specific borg error checker
1 parent 01a65f4 commit 059757b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

S32-exceptions/misc.t

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ throws-like 'sub f(*@a, $b?) { }', X::Parameter::WrongOrder,
177177
after => 'variadic';
178178

179179
#?rakudo todo 'parsing regression RT #124679'
180-
throws-like '#`', X::Syntax::Comment::Embedded;
180+
{
181+
throws-like '#`', X::Syntax::Comment::Embedded;
182+
}
183+
181184
# RT #71814
182185
throws-like "=begin\n", X::Syntax::Pod::BeginWithoutIdentifier, line => 1, filename => rx/EVAL/;
183186

@@ -588,7 +591,7 @@ throws-like { $*an_undeclared_dynvar = 42 }, X::Dynamic::NotFound;
588591
throws-like { EVAL q[given 42 { when SomeUndeclaredType { 1 }; default { 0 } }] },
589592
X::Comp::Group,
590593
'adequate error message when undeclared type is used in "when" clause',
591-
message => { m/'Function SomeUndeclaredType needs parens to avoid gobbling block'/ };
594+
message => { m/SomeUndeclaredType/ };
592595
}
593596

594597
# RT #118067

0 commit comments

Comments
 (0)