Skip to content

Commit

Permalink
[t/spec] Test for RT #68578
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@28679 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
kyle committed Oct 9, 2009
1 parent 7f14f44 commit b7487a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S06-signature/code.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 4;
plan 6;

# TODO: move this test to closure-parameters.t if it works in the future

Expand Down Expand Up @@ -28,4 +28,12 @@ sub not_returns_a_sub { 3 };
dies_ok {tester2(not_returns_a_sub)},
"can't pass thing that doesn't do Callable";

is tester2({ 'block' }), 1, 'Can pass a block to a &parameter';

# RT #68578
{
sub rt68578( Callable &x ) {}
dies_ok { rt68578({ 'block' }) }, "Can't pass block that doesn't do Callable";
}

# vim: ft=perl6

0 comments on commit b7487a7

Please sign in to comment.