Skip to content

Commit

Permalink
fix scoping bug in eval_dies_ok usage
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jan 14, 2012
1 parent 94c01b3 commit 6344a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S06-signature/named-parameters.t
Expand Up @@ -21,7 +21,7 @@ plan 95;
is c(w => 3), 3, 'Named argument passes an integer, not a Pair';
my $w = 5;
is c(:$w), 5, 'can use :$x colonpair syntax to call named arg';
eval_dies_ok 'my $y; c(:$y)', 'colonpair with wrong variable name dies';
dies_ok {eval('my $y; c(:$y)')}, 'colonpair with wrong variable name dies';
}

{
Expand Down

0 comments on commit 6344a7c

Please sign in to comment.