Skip to content
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

Subsignatures of a capture param not used to sort MMD candidates #4450

Open
p6rt opened this issue Aug 1, 2015 · 3 comments
Open

Subsignatures of a capture param not used to sort MMD candidates #4450

p6rt opened this issue Aug 1, 2015 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Aug 1, 2015

Migrated from rt.perl.org#125732 (status was 'open')

Searchable as RT125732$

@p6rt
Copy link
Author

p6rt commented Aug 1, 2015

From @skids

# The following should all have the same result​:

$ perl6 -e 'multi a ($x) { 41.say }; multi a (@​a) { 42.say; nextsame }; a([1,2]);'
42
41
$ perl6 -e 'multi a (|c($x)) { 41.say }; multi a (|c(@​a)) { 42.say; nextsame }; a([1,2]);'
41

$ perl6 -e 'multi a ($a) { 41.say }; multi a (Int $a) { 42.say; nextsame }; a(3);'
42
41
$ perl6 -e 'multi a (|c($a)) { 41.say }; multi a (|c(Int $a)) { 42.say; nextsame }; a(3);'
41

...actual binding failures will make such MMDs work, only preferential binding
is not working.

Tests are already in the new S06-multi/signature.t file (but it needs
to be added to spectest.data.) I'll label them once I have an RT # for them,

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

From @AlexDaniel

Still reproducible (2017.11,HEAD(e5b660e))

On 2015-07-31 19​:09​:17, bri@​abrij.org wrote​:

# The following should all have the same result​:

$ perl6 -e 'multi a ($x) { 41.say }; multi a (@​a) { 42.say; nextsame
}; a([1,2]);'
42
41
$ perl6 -e 'multi a (|c($x)) { 41.say }; multi a (|c(@​a)) { 42.say;
nextsame }; a([1,2]);'
41

$ perl6 -e 'multi a ($a) { 41.say }; multi a (Int $a) { 42.say;
nextsame }; a(3);'
42
41
$ perl6 -e 'multi a (|c($a)) { 41.say }; multi a (|c(Int $a)) {
42.say; nextsame }; a(3);'
41

...actual binding failures will make such MMDs work, only preferential
binding
is not working.

Tests are already in the new S06-multi/signature.t file (but it needs
to be added to spectest.data.) I'll label them once I have an RT #
for them,

@p6rt
Copy link
Author

p6rt commented Dec 3, 2017

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant