Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[t/spec] test that quoted pair keys account for positional arguments,…

… and calling a function the only excpect named parameters dies

git-svn-id: http://svn.pugscode.org/pugs@30322 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit fe63ce61c0c0a381bbca42fb1556ee7219412aec 1 parent 428b6f7
moritz authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 S06-signature/named-parameters.t
View
5 S06-signature/named-parameters.t
@@ -280,6 +280,11 @@ eval_dies_ok 'sub svn28865( :$a, :@a ) {}',
}
+{
+ sub quoted_named(:$x = 5) { $x };
+ dies_ok { quoted_named( "x" => 5 ) }, 'quoted pair key => positional parameter';
+}
+
done_testing;
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.