Permalink
Browse files

[t/spec] Test for RT #70720, :(3) has the 3 available to introspection

git-svn-id: http://svn.pugscode.org/pugs@31031 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 446f72d commit 9ba1733759b47add621f054a8c6f60743929d9e8 moritz committed May 31, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 S06-signature/introspection.t
@@ -88,6 +88,12 @@ sub j(*@i) {
'smartmach against non-closure constraint (-)';
}
+# RT #70720
+{
+ is :(3).params[0].constraints, 3, ':(3) contains the 3';
+ ok :(3).params[0].type === Int, ':(3) has a parameter of type Int';
+}
+
{
sub h(::T $x, T $y) { };
my @l = &h.signature.params;

0 comments on commit 9ba1733

Please sign in to comment.