Skip to content

Commit

Permalink
RT #75776, correct syntax error for missing block
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 7, 2012
1 parent 4adc21e commit db2d40c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-exceptions/misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ throws_like 'my %h = 1', X::Hash::Store::OddNumber;

# TOOD: might be X::Syntax::Malformed too...
throws_like 'sub foo;', X::Syntax::Missing, what => 'block';
# RT #75776
throws_like 'my $d; my class A {method x { $d }}; for () { sub }', X::Syntax::Missing, what => 'block';
throws_like 'constant foo;', X::Syntax::Missing, what => /initializer/;
throws_like 'constant * = 3;', X::Syntax::Missing, what => /constant/;

Expand Down

0 comments on commit db2d40c

Please sign in to comment.