Skip Menu |
Report information
Id: 131014
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: fernandocorrea [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Fri, 17 Mar 2017 17:11:41 -0300
Subject: [BUG] multi dispatch error on signature with coerce and smiley
From: Fernando Oliveira <fernandocorrea [...] gmail.com>
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 983b
https://irclog.perlgeek.de/perl6/2017-03-17#i_14283289

19:03SmokeMachinem: class C {proto method xxx(|) {*}; multi method xxx(Str(Cool:D) $n) {1}; multi method xxx(Str(Cool:D) $n, Int:D $p) {2}}; say C.new.xxx("42") # <- is that expected?19:03cameliarakudo-moar 79f268: OUTPUT: «Ambiguous call to 'xxx'; these signatures all match:␤:(C $: Cool:D $n, *%_)␤:(C $: Cool:D $n, *%_)␤  in block <unit> at <tmp> line 1␤␤»

19:18IOninjam: class C {multi method xxx(Str(Cool:D) $z) {1}; }.new.xxx: 'z'19:18cameliarakudo-moar 79f268: OUTPUT: «Ambiguous call to 'xxx'; these signatures all match:␤:(C $: Cool:D $z, *%_)␤:(C $: Cool:D $z, *%_)␤  in block <unit> at <tmp> line 1␤␤»

Just another Perl Hacker,
Fernando (SmokeMachine)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org