Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit 013ebe2

Browse files
committed
Publish type cache (pretty much directly taken from 6model/common).
1 parent f0b00d8 commit 013ebe2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/metamodel/how/NQPClassHOW.pm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ knowhow NQPClassHOW {
9696
$!composed := 1;
9797
}
9898

99+
# Publish type and XXX method caches.
100+
self.publish_type_cache($obj);
101+
#self.publish_method_cache($obj);
102+
99103
$obj
100104
}
101105

@@ -188,6 +192,11 @@ knowhow NQPClassHOW {
188192
return @result;
189193
}
190194

195+
method publish_type_cache($obj) {
196+
# XXX TODO: when we have roles, need these here too.
197+
pir::publish_type_check_cache($obj, @!mro)
198+
}
199+
191200
##
192201
## Introspecty
193202
##

0 commit comments

Comments
 (0)