Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[common] Fix a really silly bug in the multi candidate incorporater t…
…hat diakopter++ ran into. Also rip out a pir:: that somehow snuck in.
  • Loading branch information
jnthn committed Nov 17, 2010
1 parent 8c7d903 commit 9269db5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/NQP/NQPSetting.pm
Expand Up @@ -522,7 +522,7 @@ my knowhow NQPClassHOW {

method add_parent($obj, $parent) {
if $!composed {
pir::die("NQPClassHOW does not support adding parents after being composed.");
die("NQPClassHOW does not support adding parents after being composed.");
}
my $i := 0;
while $i != +@!parents {
Expand Down Expand Up @@ -606,6 +606,7 @@ my knowhow NQPClassHOW {
die("Could not find a proto for multi $name (it may exist, but an only is hiding it if so)");
}
}
$j := $j + 1;
}
unless $found {
die("Could not find a proto for multi $name, and proto generation is NYI");
Expand All @@ -628,7 +629,7 @@ my knowhow NQPClassHOW {
my @parents := $cur_obj.HOW.parents($cur_obj, :local(1));
while +@parents {
if +@parents == 1 {
@mro[+@mro] := $cur_obj := @parents[0];
@mro.push($cur_obj := @parents[0]);
@parents := $cur_obj.HOW.parents($cur_obj, :local(1));
}
else {
Expand Down

0 comments on commit 9269db5

Please sign in to comment.