Permalink
Browse files

Lookup of BUILD shouldn't see inherited ones.

Doing it this way since NQP has no submethods.
  • Loading branch information...
1 parent 5ba5881 commit e408df46fedb9ed1ec09559418f8e60cf584b0a2 @jnthn jnthn committed Mar 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/how/NQPClassHOW.pm
View
2 src/how/NQPClassHOW.pm
@@ -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]);

0 comments on commit e408df4

Please sign in to comment.