Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #125537.
  • Loading branch information
jnthn committed Jul 6, 2015
1 parent 87dd187 commit 201f031
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion S06-signature/type-capture.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 8;
plan 9;

# TODO: move to S02?
# L<S02/Generic types/>
Expand Down Expand Up @@ -41,4 +41,16 @@ ok($ok, 'can use captured type in declaration');

#RT #114216
eval-lives-ok q':(::T $x)', "No error on type capture";

# RT #125537
{
sub foo(::T) {
{
my T $b;
is $b, Int, 'Type capture works on variable in nested scope';
}
}
foo(1)
}

# vim: ft=perl6

0 comments on commit 201f031

Please sign in to comment.