niecza icon indicating copy to clipboard operation
niecza copied to clipboard

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

Open masak opened this issue 13 years ago • 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

masak avatar Sep 12 '12 18:09 masak