You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat Foo.pm6
multi foo ($ ) is export { say "here" }
multi foo ($, $) { say "there" }
$ perl6 -I. -MFoo -e '.say for &foo.candidates'
sub foo ($) { #`(Sub|64572824) ... }
sub foo ($, $) { #`(Sub|64572976) ... }
My expectation is that only the candidate I marked for export would be exported. Especially since I know it's
possible to have different candidates visible in different scopes:
$ cat Foo.pm6
multi foo ($ ) is export { say "here" }
multi foo ($, $) { say "there" }
.say for &foo.candidates
$ perl6 -I. -MFoo -e 'multi foo ($, $, $) {}; say "----"; .say for &foo.candidates'
sub foo ($) { #`(Sub|77538744) ... }
sub foo ($, $) { #`(Sub|80610240) ... }
----
sub foo ($) { #`(Sub|77538744) ... }
sub foo ($, $) { #`(Sub|80610240) ... }
sub foo ($, $, $) { #`(Sub|80617992) ... }
Migrated from rt.perl.org#130413 (status was 'new')
Searchable as RT130413$
The text was updated successfully, but these errors were encountered: