Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tweak routine_def for consistency with method_def.
  • Loading branch information
jnthn committed Feb 24, 2015
1 parent 4dd6ccb commit 304300f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -2598,6 +2598,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
:my $*DECLARAND := $*W.stub_code_object('Sub');
:my $*CURPAD;
:my $*SIG_OBJ;
:my %*SIG_INFO;
:my $outer := $*W.cur_lexpad();
{
if $*PRECEDING_DECL_LINE < $*LINE_NO {
Expand All @@ -2622,8 +2623,9 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
<.newpad>
[
'(' <multisig> ')' {
%*SIG_INFO := $<multisig>.ast;
$*SIG_OBJ := $*W.create_signature_and_params($<multisig>,
$<multisig>.ast, $*W.cur_lexpad(), 'Any');
%*SIG_INFO, $*W.cur_lexpad(), 'Any');
}
]?
<trait>* :!s
Expand Down

0 comments on commit 304300f

Please sign in to comment.