Skip to content

Commit

Permalink
Don't bother passing the target in the stubs
Browse files Browse the repository at this point in the history
It's always the same, and available when composing a class
  • Loading branch information
lizmat committed Mar 30, 2024
1 parent 3b736e5 commit c7d24b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Metamodel/ClassHOW.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ class Perl6::Metamodel::ClassHOW

# Test the remaining stubs
for @stubs -> %data {
if !has_method(%data<target>, %data<name>) {
if !has_method($target, %data<name>) {
nqp::die("Method '" ~ %data<name> ~ "' must be implemented by " ~
%data<target>.HOW.name(%data<target>) ~
$target.HOW.name($target) ~
" because it is required by roles: " ~
nqp::join(", ", %data<needed>) ~ ".");
}
Expand Down
1 change: 0 additions & 1 deletion src/Perl6/Metamodel/RoleToClassApplier.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ my class RoleToClassApplier {
@stubs, nqp::hash(
'name', $name,
'needed', @needed,
'target', $target,
)
);
}
Expand Down

0 comments on commit c7d24b3

Please sign in to comment.