sorear/niecza

&succeed outside of a when clause should be a compile-time error

Opened this issue · 0 comments

<masak> rn: given 42 { succeed; say "this doesn't get run" }; say "alive"
<p6eval> rakudo d1f4dc: OUTPUT«succeed without when clause [...]
<p6eval> ..niecza v21-1-ga8aa70b: OUTPUT«alive␤»
<masak> hm. I'm tentatively with Niecza on this one.
* masak checks the spec
<masak> hm. nope. Rakudo is right there.
<masak> "succeed" binds (statically) to the surrounding "when" block. Niecza should have flagged the above as an error.
* masak submits niecza-issue