sorear/niecza

return inside regex inside gather gets ignored

Opened this issue · 0 comments

<TimToady> nr: sub foo { [+] gather '' ~~ / ^ { take 1..4; return 0 } / }; say foo
<p6eval> niecza v22-13-g0d2a99e: OUTPUT«10␤»
<p6eval> ..rakudo c2005e: OUTPUT«0␤»
<TimToady> I think this is a nieczabug
<TimToady> added a validating version to http://rosettacode.org/wiki/Roman_numerals/Decode#Perl_6, but it runs into the nieczabug above
<masak> TimToady: agree on the Nieczabug. I'll submit it.