Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing .^does.
  • Loading branch information
jnthn committed Sep 19, 2011
1 parent 178ddf6 commit d9b19d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Metamodel/MROBasedTypeChecking.pm
Expand Up @@ -7,6 +7,10 @@ role Perl6::Metamodel::MROBasedTypeChecking {
0
}

method does($obj, $type) {
pir::perl6_booleanize__Pi(nqp::istype($obj, $type))
}

method type_check($obj, $checkee) {
# The only time we end up in here is if the type check cache was
# not yet published, which means the class isn't yet fully composed.
Expand Down

0 comments on commit d9b19d6

Please sign in to comment.