Skip to content

Commit

Permalink
Add test for RT #123956
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Mar 15, 2015
1 parent 9766555 commit 459be82
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S06-signature/named-renaming.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 10;
plan 11;

{
sub f(:a(:$b)) { $b }
Expand All @@ -27,3 +27,10 @@ plan 10;
dies_ok { EVAL 'typed(:j)' }, 'type constraint on var';
dies_ok { EVAL 'typed(:i)' }, 'type constraint on var propagates to alias';
}

# RT #123956
{
sub rt123956 (:t( :$th )) { $th }
is rt123956( th => 5 ), 5,
'whitespaces allowed between named parameter and parentheses in signature';
}

0 comments on commit 459be82

Please sign in to comment.