Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing type check and method caches.
  • Loading branch information
jnthn committed Jan 18, 2013
1 parent e29532a commit 769044f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/how/NQPConcreteRoleHOW.pm
Expand Up @@ -110,6 +110,9 @@ knowhow NQPConcreteRoleHOW {

# Mark composed.
$!composed := 1;
nqp::settypecache($obj, [$obj.WHAT]);
nqp::setmethcache($obj, {});
nqp::setmethcacheauth($obj, 1);
$obj
}

Expand Down
3 changes: 3 additions & 0 deletions src/how/NQPParametricRoleHOW.pm
Expand Up @@ -96,6 +96,9 @@ knowhow NQPParametricRoleHOW {
# Compose the role. Beyond this point, no changes are allowed.
method compose($obj) {
$!composed := 1;
nqp::settypecache($obj, [$obj.WHAT]);
nqp::setmethcache($obj, {});
nqp::setmethcacheauth($obj, 1);
$obj
}

Expand Down

0 comments on commit 769044f

Please sign in to comment.