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

Ambiguous dispatch to multi: () versus (*@x) #1198

Closed
p6rt opened this issue Aug 3, 2009 · 4 comments
Closed

Ambiguous dispatch to multi: () versus (*@x) #1198

p6rt opened this issue Aug 3, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Aug 3, 2009

Migrated from rt.perl.org#68158 (status was 'resolved')

Searchable as RT68158$

@p6rt
Copy link
Author

p6rt commented Aug 3, 2009

From @colomon

colomon​: rakudo​: multi a () { 1 }; multi a (*@​x) { 2 }; say a();
[2​:33pm] p6eval​: rakudo 18598d​: OUTPUT«Ambiguous dispatch to multi
'a'. Ambiguous candidates had signatures​:␤​:()␤​:(Object *@​x)␤in Main
(/tmp/8uPi9JrI7p​:2)␤»

This occurs with the current (2009/8/3 2​:33 PM EST) p6eval and with
"Chicago" on OS X.

--
Solomon Foster​: colomon@​gmail.com
HarmonyWare, Inc​: http://www.harmonyware.com

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

From @jnthn

On Mon Aug 03 11​:50​:06 2009, colomon@​gmail.com wrote​:

colomon​: rakudo​: multi a () { 1 }; multi a (*@​x) { 2 }; say a();
[2​:33pm] p6eval​: rakudo 18598d​: OUTPUT«Ambiguous dispatch to multi
'a'. Ambiguous candidates had signatures​:␤​:()␤​:(Object *@​x)␤in Main
(/tmp/8uPi9JrI7p​:2)␤»

This occurs with the current (2009/8/3 2​:33 PM EST) p6eval and with
"Chicago" on OS X.

I think in general, a non-slurpy should be seen as a more specific
candidate than a slurpy. I've tried to get this in place in git 2731d20.
It certainly makes this work. Added a test case to the spectests too.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

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

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 19, 2009
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