Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
work around nqp::can(Junction, $anything) always returning True
  • Loading branch information
moritz committed Nov 19, 2012
1 parent 3ee7808 commit 6cc0d6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Junction.pm
Expand Up @@ -51,6 +51,10 @@ my class Junction is Mu {
-> $obj, **@cpos, *%cnamed { $obj(|@cpos, |%cnamed) },
self, |$c);
}
method sink(Junction:D:) {
.?sink for $!storage.list;
Nil;
}
}

sub any(*@values) { Junction.new(@values, :type<any>); }
Expand Down

0 comments on commit 6cc0d6c

Please sign in to comment.