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
multi dispatch calls multi with named args even when none are passed and named-arg-less candidate is available #5918
Comments
From @zoffixznetIn this code, I would've expected the second multi to be used, since I'm not providing $ cat test.p6 $ perl6 test.p6 A bit of a discussion here: https://irclog.perlgeek.de/perl6/2016-12-27#i_13807727 I also had this to include in the ticket, though I now see it's likely unrelated, If we make the multi that wasn't called above call itself with args matching no candidate: $ cat test.p6 $ perl6 test.p6 Yet it still works like in the first case, if we turn off the optimizer: $ cat test.p6 $ perl6 test.p6 |
From @zoffixznetI messed up the end of the ticket, should read: Yet it still works like in the first case, if we turn off the $ perl6 --optimize=off test.p6 Or give a name to the parameter: $ cat test.p6 $ perl6 test.p6 |
From @zoffixznetOn Tue, 27 Dec 2016 11:02:17 -0800, cpan@zoffix.com wrote:
Not a bug. See explanation by jnthn++: https://irclog.perlgeek.de/perl6/2017-02-09#i_14074677 |
@zoffixznet - Status changed from 'new' to 'rejected' |
Migrated from rt.perl.org#130415 (status was 'rejected')
Searchable as RT130415$
The text was updated successfully, but these errors were encountered: