Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

autothreading over named params (RT #69863)

  • Loading branch information...
commit a7cc650a8528d3e2f28c11410fea43d428a583bd 1 parent 55356a5
@moritz moritz authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 S03-junctions/autothreading.t
View
9 S03-junctions/autothreading.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 83;
+plan 84;
{
# Solves the equation A + B = A * C for integers
@@ -306,4 +306,11 @@ plan 83;
nok $y, '... and the result is False';
}
+# RT #69863
+# autothreading over named-only params
+{
+ sub foo(Int :$n) { $n }
+ ok foo(n => 1|2) ~~ Junction, 'named-only params autothread correctly';
+}
+
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.