Skip to content

Commit

Permalink
Merge pull request #775 from vrurg/make-generics-better
Browse files Browse the repository at this point in the history
Add optional positional parameter to archetypes method
  • Loading branch information
vrurg authored Aug 2, 2022
2 parents 9baa8e0 + 6bbaf25 commit 4f4d4ef
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/how/NQPClassHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ knowhow NQPClassHOW {
has @!BUILDPLAN;

my $archetypes := Archetypes.new( :nominal(1), :inheritable(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPConcreteRoleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ knowhow NQPConcreteRoleHOW {
has $!composed;

my $archetypes := Archetypes.new( :nominal(1), :composable(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPCurriedRoleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knowhow NQPCurriedRoleHOW {
has @!pos_args;

my $archetypes := Archetypes.new( :nominal(1), :composable(1), :parametric(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPModuleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ knowhow NQPModuleHOW {
has $!composed;

my $archetypes := Archetypes.new( );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPNativeHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ knowhow NQPNativeHOW {
has $!composed;

my $archetypes := Archetypes.new( :nominal(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down
2 changes: 1 addition & 1 deletion src/how/NQPParametricRoleHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ knowhow NQPParametricRoleHOW {
has $!specialize_lock;

my $archetypes := Archetypes.new( :nominal(1), :composable(1), :parametric(1) );
method archetypes() {
method archetypes($obj?) {
$archetypes
}

Expand Down

0 comments on commit 4f4d4ef

Please sign in to comment.