Permalink
Browse files

[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...
1 parent 8c7d903 commit 9269db50c367d7fb97041f71817b1ba56111fd0d @jnthn committed Nov 17, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 common/NQP/NQPSetting.pm
@@ -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 {
@@ -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");
@@ -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 {

0 comments on commit 9269db5

Please sign in to comment.