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

rakudo multi dispatch bug #2405

Closed
p6rt opened this issue Apr 14, 2011 · 4 comments
Closed

rakudo multi dispatch bug #2405

p6rt opened this issue Apr 14, 2011 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Apr 14, 2011

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

Searchable as RT88562$

@p6rt
Copy link
Author

p6rt commented Apr 14, 2011

From redicaps@gmail.com

(15​:54​:45) *woosley​: *rakudo​: multi sub foo(0, $){}; multi sub foo(Int $n,
Str $a="A"){say $a}; foo(2,"A")
(15​:54​:49) p6eval​: rakudo 4bf132​: OUTPUT«No applicable candidates found to
dispatch to for 'foo'. Available candidates are​:␤​:(Int where (0), Any
)␤​:(Int $n, Str $a = { ... })␤␤ in main program body at line
22​:/tmp/bHQu4n3fq6␤»
(15​:56​:17) *woosley​: *rakudo​: multi sub foo(Int $n, Str $a="A"){say $a};
foo(2,"A")
(15​:56​:21) p6eval​: rakudo 4bf132​: OUTPUT«A␤»
(15​:56​:59) *woosley​: *hmmm, this should be a rakudo bug
(16​:02​:51) woosley​: rakudo​: multi sub foo(0, $){}; multi sub foo(Int $n,
$a="A"){say $a}; foo(2,"A")
(16​:02​:54) p6eval​: rakudo 4bf132​: OUTPUT«A␤»

--
Woosley.Xu

@p6rt
Copy link
Author

p6rt commented Sep 30, 2011

From @moritz

On Thu Apr 14 01​:04​:23 2011, woosley.xu wrote​:

(15​:54​:45) *woosley​: *rakudo​: multi sub foo(0, $){}; multi sub foo(Int $n,
Str $a="A"){say $a}; foo(2,"A")
(15​:54​:49) p6eval​: rakudo 4bf132​: OUTPUT«No applicable candidates found to
dispatch to for 'foo'. Available candidates are​:␤​:(Int where (0), Any
)␤​:(Int $n, Str $a = { ... })␤␤ in main program body at line
22​:/tmp/bHQu4n3fq6␤»

This works now, and it's tested in S06-multi/value-based.t.

@p6rt
Copy link
Author

p6rt commented Sep 30, 2011

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

@p6rt
Copy link
Author

p6rt commented Sep 30, 2011

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

@p6rt p6rt closed this as completed Sep 30, 2011
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