Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correc the order we do checks of subtypes from most general to most s…
…pecific, so we at least always consider type first before the extra conditions.
  • Loading branch information
jnthn committed Apr 20, 2010
1 parent ba19436 commit f162a26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/glue/subset.pm
Expand Up @@ -3,10 +3,10 @@
role SubType {
has $!checker;
method ACCEPTS(Mu $topic) {
unless $!checker.ACCEPTS($topic) {
return Bool::False;
unless callsame() {
return Bool::False
}
nextsame();
$!checker.ACCEPTS($topic)
}
}

Expand Down

0 comments on commit f162a26

Please sign in to comment.