We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#61606 (status was 'resolved')
Searchable as RT61606$
The text was updated successfully, but these errors were encountered:
Rakudo (r34146) correctly excludes optional arguments from its counting, but not named ones, which are also optional:
$ ./perl6 -e 'sub a($x, $y?) { }; sub b ($x, :$y) { }; say &a.arity; say &b.arity' 1 2 # should be 1 as well $
Tests are in t/spec/S06-signature/arity.t
Cheers, Moritz
Sorry, something went wrong.
On Mon Dec 22 06:24:11 2008, moritz wrote:
Rakudo (r34146) correctly excludes optional arguments from its counting, but not named ones, which are also optional: $ ./perl6 -e 'sub a($x, $y?) { }; sub b ($x, :$y) { }; say &a.arity; say &b.arity' 1 2 # should be 1 as well $
Now fixed in r34248, thanks!
Pm
The RT System itself - Status changed from 'new' to 'open'
@pmichaud - Status changed from 'open' to 'resolved'
No branches or pull requests
Migrated from rt.perl.org#61606 (status was 'resolved')
Searchable as RT61606$
The text was updated successfully, but these errors were encountered: