Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix up MRO computation when there's containered stuff around.
  • Loading branch information
jnthn committed Jul 9, 2011
1 parent 9f65365 commit 20abe0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Metamodel/C3MRO.pm
Expand Up @@ -44,7 +44,7 @@ role Perl6::Metamodel::C3MRO {
# Is current candidate in the tail? If so, reject.
my $cur_pos := 1;
while $cur_pos <= +$_ {
if $_[$cur_pos] =:= $cand_class {
if pir::nqp_decontainerize__PP($_[$cur_pos]) =:= pir::nqp_decontainerize__PP($cand_class) {
$rejected := 1;
}
$cur_pos := $cur_pos + 1;
Expand Down Expand Up @@ -76,7 +76,7 @@ role Perl6::Metamodel::C3MRO {
while $i < +@merge_list {
my @new_list;
for @merge_list[$i] {
unless $_ =:= $accepted {
unless pir::nqp_decontainerize__PP($_) =:= pir::nqp_decontainerize__PP($accepted) {
@new_list.push($_);
}
}
Expand Down

0 comments on commit 20abe0d

Please sign in to comment.