Skip to content

Commit 769044f

Browse files
committed
Fix missing type check and method caches.
1 parent e29532a commit 769044f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/how/NQPConcreteRoleHOW.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ knowhow NQPConcreteRoleHOW {
110110

111111
# Mark composed.
112112
$!composed := 1;
113+
nqp::settypecache($obj, [$obj.WHAT]);
114+
nqp::setmethcache($obj, {});
115+
nqp::setmethcacheauth($obj, 1);
113116
$obj
114117
}
115118

src/how/NQPParametricRoleHOW.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ knowhow NQPParametricRoleHOW {
9696
# Compose the role. Beyond this point, no changes are allowed.
9797
method compose($obj) {
9898
$!composed := 1;
99+
nqp::settypecache($obj, [$obj.WHAT]);
100+
nqp::setmethcache($obj, {});
101+
nqp::setmethcacheauth($obj, 1);
99102
$obj
100103
}
101104

0 commit comments

Comments
 (0)