# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #125260]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125260 >


* masak discovered a rakudobug!
<masak> m: sub foo { say &^fn }; foo(42)
<camelia> rakudo-moar c2a57e: OUTPUT«42␤»
<masak> hah!
<masak> I can't believe none of us has thought of that one before :P
* masak submits it
<raydiak> nice...works with all the sigils
<masak> m: sub foo(&fn) { say &fn }; foo(42)
<camelia> rakudo-moar c2a57e: OUTPUT«===SORRY!=== Error while
compiling [...]␤Calling foo(int) will never work with declared
signature (&fn) [...]
<masak> not only is the ordinary form checked, it's *checked at CHECK
time* and never even runs.

Reply via email to