Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update NQPConcreteRoleHOW to match new role type checking API.
  • Loading branch information
jnthn committed Sep 9, 2011
1 parent c6f6882 commit 7d5eec2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/how/NQPConcreteRoleHOW.pm
Expand Up @@ -21,7 +21,7 @@ knowhow NQPConcreteRoleHOW {
has @!roles;

# All composed in roles.
has @!done;
has @!role_typecheck_list;

# Have we been composed?
has $!composed;
Expand Down Expand Up @@ -95,8 +95,8 @@ knowhow NQPConcreteRoleHOW {
# add to done list their instantiation source.
if @!roles {
for @!roles {
@!done[+@!done] := $_;
@!done[+@!done] := $_.HOW.instance_of($_);
@!role_typecheck_list[+@!role_typecheck_list] := $_;
@!role_typecheck_list[+@!role_typecheck_list] := $_.HOW.instance_of($_);
}
RoleToRoleApplier.apply($obj, @!roles);
}
Expand Down Expand Up @@ -143,8 +143,8 @@ knowhow NQPConcreteRoleHOW {
@!roles
}

method does_list($obj) {
@!done
method role_typecheck_list($obj) {
@!role_typecheck_list
}

method instance_of($obj) {
Expand Down

0 comments on commit 7d5eec2

Please sign in to comment.