Skip to content

Commit 017a3d3

Browse files
committed
Add a test for slurpy/named interaction.
1 parent 602bf23 commit 017a3d3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

t/nqp/37-slurpy.t

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# slurpy args
44

5-
plan(5);
5+
plan(6);
66

77
sub slurpy_pos(*@pos) {
88
for @pos {
@@ -18,3 +18,9 @@ sub slurpy_named(*%named) {
1818
}
1919

2020
slurpy_named(:pivo("ok 4"), :slanina("ok 5"));
21+
22+
sub named_and_slurpy(:$x, *@foo) {
23+
say($x);
24+
};
25+
26+
named_and_slurpy(1, :x('ok 6'));

0 commit comments

Comments
 (0)