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


<ZoffixW> m: sub itcavuc ($c) { (try say $c) andthen 42 }; itcavuc $_ for 2, 4, 
6
<camelia> rakudo-moar 7d5bbe: OUTPUT«2␤4␤6␤»
<ZoffixW> m: sub itcavuc ($c) { try {say $c} andthen 42 }; itcavuc $_ for 2, 4, 
6
<camelia> rakudo-moar 7d5bbe: OUTPUT«2␤2␤4␤»

The block `try {}` seems to have repeated `2` and missing `6` in the output. 
The bug seems to occur with a combination of a block form of `try` and 
`andthen` (which thunks)

A few more cases: https://irclog.perlgeek.de/perl6/2017-01-17#i_13936831

Reply via email to