Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing parameterize method.
Fixes bug with providing args to an imported parameteric role.
  • Loading branch information
jnthn committed Jan 11, 2013
1 parent bd9bc6f commit c3f565d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Perl6/Metamodel/ParametricRoleGroupHOW.pm
Expand Up @@ -10,7 +10,6 @@
# group of those, and know how to specialize to a certain parameter
# list by multi-dispatching over the set of possibilities to pick
# a particular candidate.
my $currier := Perl6::Metamodel::CurriedRoleHOW;
class Perl6::Metamodel::ParametricRoleGroupHOW
does Perl6::Metamodel::Naming
does Perl6::Metamodel::Stashing
Expand Down
5 changes: 5 additions & 0 deletions src/Perl6/Metamodel/ParametricRoleHOW.pm
@@ -1,4 +1,5 @@
my $concrete := Perl6::Metamodel::ConcreteRoleHOW;
my $currier := Perl6::Metamodel::CurriedRoleHOW;
class Perl6::Metamodel::ParametricRoleHOW
does Perl6::Metamodel::Naming
does Perl6::Metamodel::Documenting
Expand Down Expand Up @@ -41,6 +42,10 @@ class Perl6::Metamodel::ParametricRoleHOW
self.add_stash($type);
}

method parameterize($obj, *@pos_args, *%named_args) {
$currier.new_type($obj, |@pos_args, |%named_args)
}

method set_body_block($obj, $block) {
$!body_block := $block
}
Expand Down

0 comments on commit c3f565d

Please sign in to comment.