Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #115356, redeclaration of class as a role
  • Loading branch information
moritz committed Oct 20, 2012
1 parent 6d78c06 commit b73c13b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-exceptions/misc.t
Expand Up @@ -58,6 +58,8 @@ throws_like 'CATCH { }; CATCH { }', X::Phaser::Multiple, block => 'CATCH';
# multiple return types
throws_like 'sub f(--> List) returns Str { }', X::Redeclaration;
throws_like 'my Int sub f(--> Str) { }', X::Redeclaration;
# RT #115356
throws_like 'class F { }; role F { }', X::Redeclaration, symbol => 'F';

throws_like 'my class A { my @a; @a!List::foo() }',
X::Method::Private::Permission,
Expand Down

0 comments on commit b73c13b

Please sign in to comment.