Permalink
Browse files

make --> more like a normal parameter

  • Loading branch information...
1 parent d38bbd0 commit a8bc48fc2c930ba68c445c2be2037ab06e3ad30a @TimToady TimToady committed Nov 23, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 STD.pm6
View
@@ -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 {

0 comments on commit a8bc48f

Please sign in to comment.