Skip to content

Commit

Permalink
Add test for RT#126724
Browse files Browse the repository at this point in the history
  • Loading branch information
skids committed May 10, 2018
1 parent bdf67b6 commit c65ed93
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S14-roles/conflicts.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 11;
plan 12;

=begin pod
Expand Down Expand Up @@ -47,4 +47,13 @@ throws-like q[
class A does R1 does R2 { }
], Exception, 'private roles can cause conflicts too';

# RT #126724
throws-like q[
role R { has $.grfuffle };
role S does R { has $.grfuffle };
S.new
], Exception,
message => /:i <before .*attribute> && <before .*grfuffle> && <before .*conflict> /,
'attribute conflict with pun';

# vim: ft=perl6

0 comments on commit c65ed93

Please sign in to comment.