Permalink
Browse files

[t/spec] type_captures

git-svn-id: http://svn.pugscode.org/pugs@28707 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent ef39b84 commit 3d2a4fce4dd4643fa5c9251c08fbcc107dd9d416 moritz committed Oct 10, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 S06-signature/introspection.t
@@ -83,6 +83,13 @@ plan *;
'smartmach against non-closure constraint (-)';
}
+{
+ sub h(::T $x, T $y) { };
+ my @l = &h.signature.params;
+ is @l[0].type_captures, 'T', '.type_captures';
+ lives_ok { @l[1].type }, "can access a type_capture'd type";
+}
+
done_testing;
# vim: ft=perl6

0 comments on commit 3d2a4fc

Please sign in to comment.