Skip to content

Commit e8508b0

Browse files
committed
t/op/anonsub.t: un-TODO test 14
It now passes.
1 parent 91dfae6 commit e8508b0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

t/op/anonsub.t

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ foreach my $code ('sub;', 'sub ($) ;', '{ $_ = sub }', 'sub ($) && 1') {
1717
}
1818

1919
{
20-
local $::TODO;
21-
$::TODO = 'RT #17589 not completely resolved';
22-
# Here's a patch. It makes "sub;" and similar report an error immediately
23-
# from the lexer. However the solution is not complete, it doesn't
24-
# handle the case "sub ($) : lvalue;" (marked as a TODO test), because
25-
# it's handled by the lexer in separate tokens, hence more difficult to
26-
# work out.
20+
# RT #17589 / GH #5959
2721
my $code = 'sub ($) : lvalue;';
2822
eval $code;
2923
like($@, qr/^Illegal declaration of anonymous subroutine at/,
@@ -35,7 +29,7 @@ is($@, '');
3529

3630
done_testing();
3731

38-
__END__
32+
__DATA__
3933
sub X {
4034
my $n = "ok 1\n";
4135
sub { print $n };

0 commit comments

Comments
 (0)