Skip to content

Commit ba89213

Browse files
committed
fudge new test for rakudo
1 parent 3b36aad commit ba89213

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

S04-statements/return.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ is( try { sub foo { my $x = 1; while $x-- { return 24; }; return 42; }; foo() },
4545
# XXX: Not 100% sure on this one
4646
eval_dies_ok('do {return 5}', 'cannot return out of a do block');
4747

48+
#?rakudo todo 'lexotic return'
4849
is (try EVAL 'my $double = -> $x { return 2 * $x }; sub foo($x) { $double($x) }; foo 42').defined, False, 'return is lexotic only; must not attempt dynamic return';
4950
}
5051

0 commit comments

Comments
 (0)