# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61332] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61332 >
<masak> rakudo: sub foo(&code_block where { 1 <= .arity <= 2 }) { say "OH HAI" }; foo(1) <p6eval> rakudo 33858: OUTPUT[Method 'arity' not found for invocant of class 'Int'current instr.: '_block23' pc 417 (EVAL_14:163)] <masak> what does Int have to do with it? <pmichaud> masak: you didn't pass a code block. <pmichaud> you sent it an Int. <masak> oh. <jnthn> we should fail with "Doesn't do Callable". <masak> jnthn: rakudobug? <pmichaud> no, we should fail with "no matching sub found" <jnthn> If you like. * masak files <pmichaud> (if multi sub) <jnthn> It wasn't a multi <pmichaud> right