Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test X::Syntax::Malformed::Elsif

  • Loading branch information...
commit afcb23f799dc3a7ba2906a401d8f298e13699b01 1 parent 9abc448
@timo timo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 S32-exceptions/misc.t
View
4 S32-exceptions/misc.t
@@ -386,4 +386,8 @@ throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foob
throws_like $code, X::Undeclared::Symbols, post_types => { .{"PostDeclaredGrammar"} :exists };
}
+{
+ 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;
+}
+
done;
Please sign in to comment.
Something went wrong with that request. Please try again.