# New Ticket Created by fernandocor...@gmail.com # Please include the string: [perl #131014] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131014 >
https://irclog.perlgeek.de/perl6/2017-03-17#i_14283289 19:03 <https://irclog.perlgeek.de/perl6/2017-03-17#i_14283289> SmokeMachine m: 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:03 <https://irclog.perlgeek.de/perl6/2017-03-17#i_14283290> camelia rakudo-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:18 <https://irclog.perlgeek.de/perl6/2017-03-17#i_14283339> IOninja m: class C {multi method xxx(Str(Cool:D) $z) {1}; }.new.xxx: 'z' 19:18 <https://irclog.perlgeek.de/perl6/2017-03-17#i_14283340> camelia rakudo-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)