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


<masak> rn: sub x { return for 1 }; x; say "alive"
<p6eval> rakudo 8ea992: OUTPUT«Attempt to return outside of any Routine [...]
<p6eval> ..niecza v24-33-gfc6d5fd: OUTPUT«alive␤»
* masak submits a rakudobug
<FROGGS> rn: sub x { return 2 for 1 }; my $three = x; say "alive"
<p6eval> rakudo 8ea992: OUTPUT«alive␤»
<p6eval> ..niecza v24-33-gfc6d5fd: OUTPUT«[...]alive␤»
<FROGGS> masak: so it's sink context?
<masak> good catch. yes, must be.

Reply via email to