Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix nqp::can(role { }, "anything"). jnthn++
  • Loading branch information
moritz committed Dec 2, 2012
1 parent 5481c6e commit e2f2dc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Metamodel/RolePunning.pm
Expand Up @@ -43,6 +43,9 @@ role Perl6::Metamodel::RolePunning {
$!pun := self.make_pun($obj);
$!made_pun := 1;
}
unless nqp::can($!pun, $name) {
return nqp::null();
}
-> $inv, *@pos, *%named {
$!pun."$name"(|@pos, |%named)
}
Expand Down

0 comments on commit e2f2dc4

Please sign in to comment.