# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #114438] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114438 >
<masak> rn: sub foo($alpha: $beta) { say "$alpha: $beta" }; foo 42, "OH HAI" <p6eval> niecza v19-15-g051783d: OUTPUT«42: OH HAI» <p6eval> ..rakudo 038a3c: OUTPUT«Lexical 'self' not found in sub foo [...] <masak> actually, I'm not so sure supplying an invocant this way to a sub is an error. <PerlJam> yeah, I was thinking that too :) <masak> but Rakudo's behavior above surely is. * masak submits rakudobug <PerlJam> masak++ This is a kind of "pincer move" bug report. *Either* Rakudo should just run 'foo' fine above, and output what Niecza does, *or* it should be illegal in the first place to declare subs with invocant parameters.