Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a couple of missing .^mro methods.
  • Loading branch information
jnthn committed Jun 3, 2013
1 parent a31ce41 commit 623eeb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Metamodel/ConcreteRoleHOW.nqp
Expand Up @@ -122,4 +122,8 @@ class Perl6::Metamodel::ConcreteRoleHOW
for @!role_typecheck_list { @types.push($_) }
nqp::settypecache($obj, @types)
}

method mro($obj) {
[$obj]
}
}
4 changes: 4 additions & 0 deletions src/Perl6/Metamodel/ParametricRoleHOW.nqp
Expand Up @@ -198,4 +198,8 @@ class Perl6::Metamodel::ParametricRoleHOW
$conc.HOW.compose($conc);
return $conc;
}

method mro($obj) {
[$obj]
}
}

0 comments on commit 623eeb3

Please sign in to comment.