Skip to content

Commit a8bc48f

Browse files
committed
make --> more like a normal parameter
1 parent d38bbd0 commit a8bc48f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

STD.pm6

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2791,14 +2791,7 @@ grammar P6 is STD {
27912791
]
27922792
<.ws>
27932793
{ $*IN_DECL = ''; }
2794-
[ '-->' <.ws>
2795-
[
2796-
|| <type_constraint>
2797-
|| <longname> <.panic("Typename " ~ $<longname>[0].Str ~ " must be predeclared")>
2798-
|| <.panic: "No type found after -->">
2799-
]
2800-
<.ws>
2801-
]?
2794+
[ '-->'<.ws> [ <returnspec=parameter><.ws> || <.panic: "No return type or value found after -->"> ] ]?
28022795
{
28032796
$*LEFTSIGIL = '@';
28042797
if $lexsig {

0 commit comments

Comments
 (0)