Skip to content

Commit

Permalink
Add test case to cover GH #192.
Browse files Browse the repository at this point in the history
The parsing of hash constructors has been improved
in PPI and this bug is now fixed via Perl-Critic/PPI#92.
  • Loading branch information
thaljef committed Nov 3, 2014
1 parent 05c7209 commit 5b4ab50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/ValuesAndExpressions/ProhibitCommaSeparatedStatements.run
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ sub new {
return bless { foo => 1, bar => 2 }, __PACKAGE__;
}

#-----------------------------------------------------------------------------

## name Hashref seen as block (GH #192)
## failures 0
## cut

my $o = shift || {'file' => 1, 'exec' => 1};

#-----------------------------------------------------------------------------
# Local Variables:
# mode: cperl
Expand Down

0 comments on commit 5b4ab50

Please sign in to comment.