We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b36aad commit ba89213Copy full SHA for ba89213
S04-statements/return.t
@@ -45,6 +45,7 @@ is( try { sub foo { my $x = 1; while $x-- { return 24; }; return 42; }; foo() },
45
# XXX: Not 100% sure on this one
46
eval_dies_ok('do {return 5}', 'cannot return out of a do block');
47
48
+ #?rakudo todo 'lexotic return'
49
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';
50
}
51
0 commit comments