id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,lang,patch,platform
1464,"NQP-rx doesn't handle bare ""return"" from nested block correctly.",Austin_Hastings,pmichaud,"In a nested loop with nested lexicals (requiring a block), a return with no argument does not escape the sub.

{{{
austin@andLinux:~/kakapo$ cat test.nqp
sub test1(@items) {
	for @items {
		my $temp := $_;

		if $temp == 2 {
			return 0;
		}
	}

	say(""Test1 never finishes"");
}

sub test2(@items) {

	for @items {
		my $temp := $_;

		if $temp == 2 {
			return;
		}
	}

	say(""Test2 never finishes"");
}

my @items := (1, 2, 3);
test1(@items);
test2(@items);
austin@andLinux:~/kakapo$ parrot-nqp test.nqp
Test2 never finishes
}}}
",bug,closed,normal,,nqp,2.1.0,medium,invalid,,,,,
