Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not produce empty parent lists in .^parents(:tree)
still seems to be a bit off
  • Loading branch information
moritz committed Aug 22, 2015
1 parent c4742a6 commit 5b902d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Metamodel/MultipleInheritance.nqp
Expand Up @@ -53,7 +53,8 @@ role Perl6::Metamodel::MultipleInheritance {
my @result;
for @!parents {
my @pt := [$_];
@pt.push($_.HOW.parents($_, :tree(1)));
my @recursive_parents := $_.HOW.parents($_, :tree(1));
@pt.push(@recursive_parents) if @recursive_parents;
@result.push(nqp::hllizefor(@pt, 'perl6').Array.item);
}
return nqp::hllizefor(@result, 'perl6');
Expand Down

0 comments on commit 5b902d4

Please sign in to comment.