Skip to content

Commit

Permalink
fudge new test for rakudo
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 16, 2014
1 parent 3b36aad commit ba89213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S04-statements/return.t
Expand Up @@ -45,6 +45,7 @@ is( try { sub foo { my $x = 1; while $x-- { return 24; }; return 42; }; foo() },
# XXX: Not 100% sure on this one
eval_dies_ok('do {return 5}', 'cannot return out of a do block');

#?rakudo todo 'lexotic return'
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';
}

Expand Down

0 comments on commit ba89213

Please sign in to comment.