Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #114724
  • Loading branch information
usev6 committed Jul 10, 2015
1 parent c3d8169 commit e26327b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S06-signature/type-capture.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 9;
plan 10;

# TODO: move to S02?
# L<S02/Generic types/>
Expand Down Expand Up @@ -52,4 +52,14 @@ eval-lives-ok q':(::T $x)', "No error on type capture";
foo(1)
}

# RT #114724
{
sub f (::T $g) {
for ($g) -> T $h {
return $h ~ ":" ~ T.perl
}
};
is f("blah"), "blah:Str", 'Type variable matches in signature to "for" loop';
}

# vim: ft=perl6

0 comments on commit e26327b

Please sign in to comment.