Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure we can compose NQP methods into a Perl 6 class (doesn't mak…
…e NQP roles work yet from nom, but a necesary step).
  • Loading branch information
jnthn committed Jul 12, 2011
1 parent fad32e6 commit 38b4f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Metamodel/RoleToClassApplier.pm
Expand Up @@ -2,7 +2,7 @@ my class RoleToClassApplier {
sub has_method($target, $name, $local) {
my @methods := $target.HOW.methods($target, :local($local));
for @methods {
if $_.name eq $name { return 1; }
if ~$_ eq $name { return 1; }
}
return 0;
}
Expand Down

0 comments on commit 38b4f24

Please sign in to comment.