Skip to content
Browse files

[t/spec] test for RT #69240, &a as a named parameter

git-svn-id: http://svn.pugscode.org/pugs@30030 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent a8fc23f commit 6483dc63c84a58d4a81f927fa11695f140b2368a moritz committed Mar 11, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 S06-signature/closure-parameters.t
View
8 S06-signature/closure-parameters.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 14;
+plan 15;
# L<S06/Closure parameters>
@@ -64,4 +64,10 @@ plan 14;
'Multi dispatch based on closure parameter syntax (5)';
}
+{
+ sub foo(:&a) { bar(:&a) }
+ sub bar(*%_) { "OH HAI" }
+ is foo(), 'OH HAI', 'can use &a as a named parameter';
+}
+
# vim: ft=perl6

0 comments on commit 6483dc6

Please sign in to comment.
Something went wrong with that request. Please try again.