Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #114954: can export and import parameterized roles
  • Loading branch information
moritz committed Jan 12, 2013
1 parent 510ae2a commit b111dae
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion S14-roles/parameterized-type.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 28;
plan 29;

=begin pod
Expand Down Expand Up @@ -96,6 +96,17 @@ eval_dies_ok 'role ABCD[EFGH] { }', 'role with undefined type as parameter dies'

}

# RT #114954
{
my module A {
role B[$x] is export {
method payload { $x }
}
}
import A;
is B['blubb'].payload, 'blubb', 'can export and import parameterized roles';
}

#?pugs emit =end SKIP

# vim: ft=perl6

0 comments on commit b111dae

Please sign in to comment.