You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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.
* 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.
Fixed, and tests added (for all the sigils) in S06-signature/mixed-placeholders.t.
Migrated from rt.perl.org#125260 (status was 'resolved')
Searchable as RT125260$
The text was updated successfully, but these errors were encountered: