Skip to content

Commit ae9c765

Browse files
committed
skip tests for NYI'd exception type RT #125132
1 parent dcbfdc7 commit ae9c765

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

S04-statements/when.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use Test;
22

33
plan 24;
44

5+
#?rakudo skip 'exception type X::Syntax::OutsideOfTopicalizer NYI RT #125132'
6+
{
57
throws_like 'when 1 { }', X::Syntax::OutsideOfTopicalizer, keyword => 'when',
68
'when block in mainline complains about missing topicalizer';
79
throws_like 'default { }', X::Syntax::OutsideOfTopicalizer, keyword => 'default',
@@ -31,6 +33,7 @@ throws_like 'my class C { method foo() { when 1 { } } }', X::Syntax::OutsideOfTo
3133
'when block in method not declaring $_ complains about missing topicalizer';
3234
throws_like 'my class C { method foo() { default { } } }', X::Syntax::OutsideOfTopicalizer, keyword => 'default',
3335
'default block in method not declaring $_ complains about missing topicalizer';
36+
}
3437

3538
my $c = { when 1 { 'one' }; when 2 { 'two!' }; default { 'many' } };
3639
is $c(1), 'one', 'when works in a circumfix:<{ }> (1)';

0 commit comments

Comments
 (0)