Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Parameter/Signature.gist
We dont state thate a param is Any, because this is the default. This also
fixes an explosion on jvm.
  • Loading branch information
FROGGS committed Jan 24, 2014
1 parent 37f0403 commit 4aa8c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Parameter.pm
Expand Up @@ -164,7 +164,7 @@ my class Parameter { # declared in BOOTSTRAP
$perl = ~$/;
$truemu = 'Mu ' if $perl eq 'Mu'; # Positional !~~ Positional[Mu]
}
else {
elsif $type ne 'Any' {
$perl = $type;
}
if $!flags +& $SIG_ELEM_DEFINED_ONLY {
Expand Down
2 changes: 1 addition & 1 deletion src/core/Signature.pm
Expand Up @@ -126,7 +126,7 @@ my class Signature { # declared in BOOTSTRAP
$sep = ($i == 0 && $param.invocant) ?? ': ' !! ', ';
$i = $i + 1;
}
if $!returns !=:= Mu {
if !nqp::isnull($!returns) && $!returns !=:= Mu {
$perl ~= ' --> ' ~ $!returns.perl
}
# Closer.
Expand Down

0 comments on commit 4aa8c5d

Please sign in to comment.