# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65322] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65322 >
<masak> rakudo: multi sub foo(Int $n where 1) { say "OH HAI" }; sub foo(Int $n) { say "CHEEZBURGER" }; foo(1) <p6eval> rakudo ec69e2: OUTPUT«CHEEZBURGER» <masak> anyone know if that's in RT already? <jnthn> That should be an error unless there is a proto in scope. <masak> right. <jnthn> (which in this case there wasn't) <jnthn> rakudo: proto foo() { }; sub foo(Int $x) { 1 }; sub foo(Str $x) { 2 }; say foo(1); say foo("a"); <p6eval> rakudo ec69e2: OUTPUT«12» <jnthn> Anyway, it works. <masak> jnthn: aye, but the CHEEZBURGER one shouldn't work. <jnthn> aye, we should complain loudly about that one.