[perl #129827] [BUG] method form of `return` errors out instead of returning

2016-10-12 Thread jn...@jnthn.net via RT
On Fri Oct 07 09:39:14 2016, c...@zoffix.com wrote:
> 
>  m: sub { 42.return }()
>  rakudo-moar 605f27: OUTPUT«Attempt to return outside of any  
> Routine␤  in sub  at  line 1␤  in block  at  line 1␤␤»
> 
It was an over-eager return-handler optimization. Fixed, and test added in 
S06-advanced/return.t.




[perl #129827] [BUG] method form of `return` errors out instead of returning

2016-10-07 Thread via RT
# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #129827]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=129827 >



 m: sub { 42.return }()
 rakudo-moar 605f27: OUTPUT«Attempt to return outside of any  
Routine␤  in sub  at  line 1␤  in block  at  line 1␤␤»