Skip to content

Commit afcb23f

Browse files
committed
test X::Syntax::Malformed::Elsif
1 parent 9abc448 commit afcb23f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

S32-exceptions/misc.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,4 +386,8 @@ throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foob
386386
throws_like $code, X::Undeclared::Symbols, post_types => { .{"PostDeclaredGrammar"} :exists };
387387
}
388388

389+
{
390+
throws_like q{if 10 > 5 { say "maths works!" } else if 10 == 5 { say "identity is weird" } else { say "math is weird" }}, X::Syntax::Malformed::Elsif;
391+
}
392+
389393
done;

0 commit comments

Comments
 (0)