Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix multi sort so Blob ~~ String is true.
Fixes the ambiguity issues that kept any of the Blob operators from
being reached.
  • Loading branch information
jnthn committed Jul 21, 2013
1 parent cb96e37 commit 763cfe4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -1921,8 +1921,14 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}

# Construct role meta-object with group.
sub needs_args($s) {
return 0 if !$s;
my @params := $s[0].ast<parameters>;
return 0 if nqp::elems(@params) == 0;
return nqp::elems(@params) > 1 || !@params[0]<optional>;
}
$*PACKAGE := $*W.pkg_create_mo($/, %*HOW{$*PKGDECL}, :name($longname.name()),
:repr($*REPR), :group($group), :signatured($<signature> ?? 1 !! 0));
:repr($*REPR), :group($group), :signatured(needs_args($<signature>)));
}
}
else {
Expand Down

0 comments on commit 763cfe4

Please sign in to comment.