Skip to content

Commit

Permalink
make --> more like a normal parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Nov 23, 2012
1 parent d38bbd0 commit a8bc48f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions STD.pm6
Expand Up @@ -2791,14 +2791,7 @@ grammar P6 is STD {
]
<.ws>
{ $*IN_DECL = ''; }
[ '-->' <.ws>
[
|| <type_constraint>
|| <longname> <.panic("Typename " ~ $<longname>[0].Str ~ " must be predeclared")>
|| <.panic: "No type found after -->">
]
<.ws>
]?
[ '-->'<.ws> [ <returnspec=parameter><.ws> || <.panic: "No return type or value found after -->"> ] ]?
{
$*LEFTSIGIL = '@';
if $lexsig {
Expand Down

0 comments on commit a8bc48f

Please sign in to comment.