File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use Test;
3
3
use lib " t/spec/packages" ;
4
4
use Test ::Util;
5
5
6
- plan 312 ;
6
+ plan 317 ;
7
7
8
8
throws-like ' 42 +' , X::AdHoc , " missing rhs of infix" , message => rx /term /;
9
9
@@ -678,4 +678,11 @@ throws-like 'sub x(array[Int]) { }', X::Comp::BeginTime;
678
678
# RT #125120
679
679
throws-like ' enum X <A>; sub foo(A $a) { True' , X::Syntax::Missing ;
680
680
681
+ # RT #108462
682
+ throws-like ' { our sub foo { say "OMG" } }; { our sub foo { say "WTF" } };' , X::Redeclaration ;
683
+ throws-like ' my class C { my method foo { say "OMG" }; my method foo { say "WTF" } }' , X::Redeclaration ;
684
+ throws-like ' my class C { our method foo { say "OMG" }; our method foo { say "WTF" } }' , X::Redeclaration ;
685
+ throws-like ' my grammar G { my token foo { OMG }; my token foo { WTF } }' , X::Redeclaration ;
686
+ throws-like ' my grammar G { our token foo { OMG }; our token foo { WTF } }' , X::Redeclaration ;
687
+
681
688
# vim: ft=perl6
You can’t perform that action at this time.
0 commit comments