As another data point, the problem persists also when using parens instead of "do" to enforce return values:
(loop { state $a++; say $a; })[^5]
As another data point, the problem persists also when using parens instead of "do" to enforce return values:
(loop { state $a++; say $a; })[^5]