Skip to content

Commit

Permalink
Some missing 'multi's.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 5, 2011
1 parent 2b00770 commit 3ee1e23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/Capture.pm
Expand Up @@ -18,21 +18,21 @@ my class Capture {
!! Any
}

method hash(Capture:D:) {
multi method hash(Capture:D:) {
my $enum := nqp::create(EnumMap);
nqp::bindattr($enum, EnumMap, '$!storage', $!hash);
$enum;
}

method list(Capture:D:) {
multi method list(Capture:D:) {
nqp::p6list($!list, List, Mu);
}

method elems(Capture:D:) {
multi method elems(Capture:D:) {
nqp::p6box_i(nqp::elems($!list))
}

method gist(Capture:D:) {
multi method gist(Capture:D:) {
my Mu $gist := nqp::list();
if $!list {
my Mu $iter := nqp::iterator($!list);
Expand Down

0 comments on commit 3ee1e23

Please sign in to comment.