Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
another redeclaration test
  • Loading branch information
moritz committed Feb 8, 2012
1 parent 171ad0a commit 63626c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S32-exceptions/misc.t
Expand Up @@ -71,6 +71,7 @@ throws_like 'sub (Int Str $x) { }', X::Parameter::MultipleTypeConstraints;
# even if the tests look rather boring;
throws_like 'my @a; my @a', X::Redeclaration, symbol => '@a';
throws_like 'sub a { }; sub a { }',X::Redeclaration, symbol => 'a', what => 'routine';
throws_like 'sub a { }; multi sub a { }',X::Redeclaration, symbol => 'a', what => 'routine';
throws_like 'my class A { }; my class A { }', X::Redeclaration, symbol => 'A';
throws_like 'my class B { }; my subset B { }', X::Redeclaration, symbol => 'B';
throws_like 'CATCH { }; CATCH { }', X::Phaser::Multiple, block => 'CATCH';
Expand Down

0 comments on commit 63626c2

Please sign in to comment.