Skip to content

Commit

Permalink
Fix argument for call to archetypes
Browse files Browse the repository at this point in the history
This buglet sneaked in with 71de223 where an optional positional
parameter for archetypes was introduced. Similar to other methods
of the metamodel API the first argument should be the object that
HOW was invoked upon.
  • Loading branch information
usev6 committed Oct 9, 2022
1 parent 25c76ae commit c915b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Metamodel/CurriedRoleHOW.nqp
Expand Up @@ -164,7 +164,7 @@ class Perl6::Metamodel::CurriedRoleHOW
$_);
}
for %!named_args {
%new_named{$_.key} := $_.value.HOW.archetypes($_).generic ??
%new_named{$_.key} := $_.value.HOW.archetypes($_.value).generic ??
$_.value.HOW.instantiate_generic($_.value, $type_env) !!
$_.value;
}
Expand Down

0 comments on commit c915b07

Please sign in to comment.