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
If you're passing a named arg, separate it with a comma, and pass two more named args without separating them, things work as expected:
$ perl6 -e 'my $ber = 99; -> $ where .z: :z, :foo:bar($ber) {}(class { method z (:$foo, :$bar) { dd [$foo, $bar ]; True } } )' [Bool::True, 99]
But if you merely replace the first arg with a positional arg, the named args appear to be silently ignored:
$ perl6 -e 'my $ber = 99; -> $ where .z: 42, :foo:bar($ber) {}(class { method z ($v?, :$foo, :$bar) { dd [$foo, $bar ]; True } } )' [Bool::True, Any] $ perl6 -v This is Rakudo version 2017.10-3-gf40babb built on MoarVM version 2017.10 implementing Perl 6.c.
The text was updated successfully, but these errors were encountered:
This now returns
Array element = [Bool::True, 99]
So I would say it's fixed, right?
Sorry, something went wrong.
It seemingly is. Needs a test, I guess.
No branches or pull requests
If you're passing a named arg, separate it with a comma, and pass two more named args without separating them, things work as expected:
But if you merely replace the first arg with a positional arg, the named args appear to be silently ignored:
The text was updated successfully, but these errors were encountered: