# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #123953] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=123953 >
(10:19:08 AM) skids: m: role g[::T $t] { multi method foo (T $a) { "OHAI".say }; multi method foo($a) { "ONOES".say }; }; g[Int(Str)].new.foo("100") (10:19:09 AM) camelia: rakudo-moar 35de75: OUTPUT«ONOES» (10:20:59 AM) jnthn: Bah, I knew somebody would try that :P (10:21:03 AM) vendethiel: *g* (10:21:31 AM) jnthn: I only did coercion types so far sufficient that we could migrate away from the deprecated "as" in sigs. (10:21:50 AM) jnthn: That one should be possible to make work, anyways. :) (10:22:08 AM) jnthn: It's just a bit fiddly.