Skip to content

Commit

Permalink
metaclass objects currently match Object, not Any
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Aug 8, 2009
1 parent 7717c4a commit 2db9166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/setting/Code.pm
Expand Up @@ -3,7 +3,7 @@ class Code is also {
=begin item ACCEPTS
=end item
method ACCEPTS($topic) {
method ACCEPTS(Object $topic) {
self($topic);
}

Expand Down
4 changes: 2 additions & 2 deletions src/setting/Object.pm
Expand Up @@ -31,7 +31,7 @@ class Object is also {
@search_list = @new_search_list;
}
} elsif $ascendant | $preorder {
my sub build_ascendent($class) {
my sub build_ascendent(Object $class) {
unless any(@classes <<===>> $class) {
push @classes, $class;
for $class.^parents(:local) {
Expand All @@ -41,7 +41,7 @@ class Object is also {
}
build_ascendent(self.WHAT);
} elsif $descendant {
my sub build_descendent($class) {
my sub build_descendent(Object $class) {
unless any(@classes <<===>> $class) {
for $class.^parents(:local) {
build_descendent($^parent);
Expand Down

0 comments on commit 2db9166

Please sign in to comment.