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
Optional parameters before required shouldn't be allowed, but Rakudo doesn't catch them #1431
Comments
From @masak<masak> rakudo: sub foo($a = 1, $b) { say $a }; foo(3) First off, the error message is nonsensical. Second, the declaration of a signature where optional parameters |
@coke - Status changed from 'new' to 'open' |
From @jnthnOn Mon Dec 07 20:47:17 2009, masak wrote:
Now: 15:29 < jnthn> rakudo: sub foo($a = 1, $b) { say $a }; foo(3) Which is the correct error. Needs a test. /jnthn |
From @bbkrNOM: works correct bbkr:nom bbkr$ ./perl6 -e 'sub foo($a = 1, $b) { say $a }; foo(3)' |
From @moritzNow tested in t/spec/S06-signature/optional.t |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#71110 (status was 'resolved')
Searchable as RT71110$
The text was updated successfully, but these errors were encountered: