Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[t/spec] when our closure parameter requires and Int, we should give …

…it one

git-svn-id: c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit c21309dff5a63b888d600dd2673bf6dc2d376a31 1 parent 820912f
moritz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 S06-signature/closure-parameters.t
4 S06-signature/closure-parameters.t
@@ -30,7 +30,7 @@ plan 9;
#?rakudo skip 'type syntax parse failure'
- my sub testit (&testcode:(Int --> Bool)) {testcode()}
+ my sub testit (&testcode:(Int --> Bool)) {testcode(3)}
my Bool sub testintbool(Int $foo) {return Bool::True}
my Bool sub teststrbool(Str $foo) {return Bool::False}
my Int sub testintint (Int $foo) {return 1}
@@ -41,3 +41,5 @@ plan 9;
eval_dies_ok('testit(&teststrbool)', 'code dies with invalid signature (3)');
eval_dies_ok('testit(&teststrint)', 'code dies with invalid signature (4)');
+# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.