Skip to content

Commit

Permalink
Lookup of BUILD shouldn't see inherited ones.
Browse files Browse the repository at this point in the history
Doing it this way since NQP has no submethods.
  • Loading branch information
jnthn committed Mar 10, 2013
1 parent 5ba5881 commit e408df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/how/NQPClassHOW.pm
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ knowhow NQPClassHOW {
my @attrs := $obj.HOW.attributes($obj, :local(1));

# Does it have its own BUILD?
my $build := $obj.HOW.find_method($obj, 'BUILD', :no_fallback(1));
my $build := $obj.HOW.method_table($obj)<BUILD>;
if nqp::defined($build) {
# We'll call the custom one.
nqp::push(@plan, [0, $build]);
Expand Down

0 comments on commit e408df4

Please sign in to comment.