Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tests for RT #109880.
  • Loading branch information
jdv committed May 28, 2015
1 parent 5df1265 commit 1c19fa4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S14-roles/parameterized-basic.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 35;
plan 36;

=begin pod
Expand Down Expand Up @@ -163,4 +163,10 @@ is(AP_1.new.y, 'b', 'use of type params in attr initialization works after 2n
'cannot put question mark on a type constraint';
}

# RT #109880
{
role Foo[::T] { has T @.a = T }; class Bar {};
is( Foo[Bar].new.a[0], Bar, 'generic role with defaulted and typed attr' );
}

# vim: ft=perl6

0 comments on commit 1c19fa4

Please sign in to comment.