Skip to content

Commit

Permalink
[implicit-parameter.t] placeholder conflict requires eval_die_ok
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@25743 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
lwall committed Mar 8, 2009
1 parent 8dfe4b7 commit 2136dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S04-declarations/implicit-parameter.t
Expand Up @@ -42,7 +42,7 @@ plan 16;
is(-> $a { $_ }.(42), 'Ack!', 'Even with parameters (?)', :todo<feature>);
is(-> $_ { $_ }.(42), 42, 'But not when the parameter is $_');

dies_ok( sub () { -> { $^a }.() }, 'Placeholders not allowed in ->');
eval_dies_ok( 'sub () { -> { $^a }.() }', 'Placeholders not allowed in ->');

is(-> { }.arity, 0, '->{} is arity 0, again');
}
Expand Down

0 comments on commit 2136dcb

Please sign in to comment.