Skip to content

Commit

Permalink
Fix for handling non-Raku metaclasses
Browse files Browse the repository at this point in the history
`concretizations` method must only iterate over parents capable of
reporting their concretizations.
  • Loading branch information
vrurg committed Dec 20, 2019
1 parent 8d03bdf commit 94b4ca9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Perl6/Metamodel/Concretization.nqp
Expand Up @@ -25,8 +25,10 @@ role Perl6::Metamodel::Concretization {
@conc := self.c3_merge(@conc) if $transitive;
unless $local {
for self.parents($obj, :local) {
for $_.HOW.concretizations($_, :$local, :$transitive) {
nqp::push(@conc, $_)
if nqp::can($_.HOW, 'concretizations') {
for $_.HOW.concretizations($_, :$local, :$transitive) {
nqp::push(@conc, $_)
}
}
}
}
Expand Down

0 comments on commit 94b4ca9

Please sign in to comment.