Skip to content

Commit

Permalink
Fix to role collision handling from NQP JVM.
Browse files Browse the repository at this point in the history
The collisions list is just names, not code objects.
  • Loading branch information
jnthn committed Apr 13, 2013
1 parent 71fab2d commit 84d8cc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/how/RoleToClassApplier.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ knowhow RoleToClassApplier {

# Collisions?
my @collisions := $to_compose_meta.collisions($to_compose);
for @collisions {
my $name := nqp::can($_, 'name') ?? $_.name !! nqp::getcodename($_);
for @collisions -> $name {
unless has_method($target, $name, 1) {
nqp::die("Method '$name' collides and a resolution must be provided by the class '" ~
$target.HOW.name($target) ~ "'");
Expand Down

0 comments on commit 84d8cc0

Please sign in to comment.