Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix collisions handling bug in MOP code.
Caught on JVM thanks to it being a bit stricter.
  • Loading branch information
jnthn committed Feb 28, 2013
1 parent ccb94a3 commit 7d43858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nqp-src/nqp-mo.pm
Expand Up @@ -362,8 +362,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 7d43858

Please sign in to comment.