Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test for RT #84492.
  • Loading branch information
peschwa committed Jan 31, 2014
1 parent 2162736 commit 84c4742
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions S14-roles/parameterized-type.t
Expand Up @@ -106,6 +106,13 @@ eval_dies_ok 'role ABCD[EFGH] { }', 'role with undefined type as parameter dies'
is B['blubb'].payload, 'blubb', 'can export and import parameterized roles';
}

# RT #84492
{
my role R[::T] { multi method foo(T $t) { T.gist } };
my class A does R[Str] does R[Int] { };
is A.new.foo(5), 5.WHAT.gist, 'correct multi selected from multiple parametric roles';
}

#?pugs emit =end SKIP

# vim: ft=perl6

0 comments on commit 84c4742

Please sign in to comment.