Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
It's ambiguous because named params don't matter
  • Loading branch information
lizmat committed May 6, 2015
1 parent 6640006 commit 51ccca9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/Signature.pm
Expand Up @@ -91,7 +91,7 @@ my class Signature { # declared in BOOTSTRAP
# XXX TODO: Parameter separators.
multi method perl(Signature:D:) {
# Opening.
my $perl = '';
my $perl = ':(';

# Parameters.
my $params = self.params();
Expand All @@ -108,9 +108,8 @@ my class Signature { # declared in BOOTSTRAP
if !nqp::isnull($!returns) && $!returns !=:= Mu {
$perl ~= ' --> ' ~ $!returns.perl
}

# Finalize.
$perl ?? ":($perl)" !! ":(*%_)"
# Closer.
$perl ~ ')'
}

multi method gist(Signature:D:) {
Expand Down

0 comments on commit 51ccca9

Please sign in to comment.