-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comma (wrongly) required between parameter with default value and returns-arrow ('-->') in Rakudo #3141
Comments
From gerd.r.devel@googlemail.com<not_gerd> rn: sub ($ = 42 --> Int) { ... } |
From @ronaldxsOn Thu Jun 28 01:11:14 2012, gerd.r.devel@googlemail.com wrote:
I ran into this with a named subroutine but noticed there that the So sub foo(Int $x = 3 --> Rat) { return $x / 2} unsurprisingly gives the same error but my/our Rat sub foo(Int $x = 3) { return $x / 2} seems to work as expected. |
The RT System itself - Status changed from 'new' to 'open' |
From @masak<lizmat> r: sub a ( $a=1, --> Hash ) { say $a; my %h }; say a(2) I have a feeling I know what's up. The default puts the parser in EXPR |
From @usev6This works now without the comma: $ perl6-m -e 'sub a ( $a=1 --> Hash ) { say $a; my %h }; say a(2)' ^^ empty string here ;-) I added a test to S06-signature/defaults.t with the following commit: Raku/roast@4485db4547 |
1 similar comment
From @usev6This works now without the comma: $ perl6-m -e 'sub a ( $a=1 --> Hash ) { say $a; my %h }; say a(2)' ^^ empty string here ;-) I added a test to S06-signature/defaults.t with the following commit: Raku/roast@4485db4547 |
@usev6 - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#118063 (status was 'resolved')
Searchable as RT118063$
The text was updated successfully, but these errors were encountered: