# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74758] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74758 >
<masak> rakudo: class A { method foo(A :$a) { say $a.WHAT } }; A.new.foo <p6eval> rakudo 72f914: OUTPUT«Any()» <masak> jnthn: has this been reported? the fact that $a is of a type that wouldn't bind? <jnthn> masak: Looks odd. * masak submits rakudobug <jnthn> Is it peculiar to nameds? <ash__> rakudo: class A {}; sub foo(A :$a) { say $a.WHAT }; foo; <p6eval> rakudo 72f914: OUTPUT«Any()» <masak> so, not specific to nameds. <jnthn> oh good <jnthn> It's an easy fix then, I expect. * jnthn is a little surprised we musta gone many months with this bug. <masak> jnthn: we have too few spectests :) <masak> rakudo: sub foo(Int $a = "OH HAI") { say $a }; foo <p6eval> rakudo 72f914: OUTPUT«OH HAI» <masak> that was fun, too :)