Permalink
Browse files

[t/spec] Add a test to show bug #66868

git-svn-id: http://svn.pugscode.org/pugs@27179 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
kyle
kyle committed Jun 23, 2009
1 parent b398715 commit a3d3a00fbefda480664454c89d30cd6bec4b3877
Showing with 4 additions and 1 deletion.
  1. +4 −1 S06-signature/arity.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 47;
+plan 48;
# L<S06/Required parameters/method:>
sub a_zero () { };
@@ -124,3 +124,6 @@ is &o_two.count, 3, 'count on sub with optional and required named params';
is +$tester.signature.params, indirect-count($tester),
'... also when passed to a sub first';
}
+
+#?rakudo todo 'bug #66868: Zero-arg sub interpreted as parameterless'
+dies_ok { a_zero( 'hello', 'world' ) }, 'no matching sub signature';

0 comments on commit a3d3a00

Please sign in to comment.