We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f0ccea commit 1858f90Copy full SHA for 1858f90
S03-operators/context.t
@@ -2,7 +2,7 @@ use v6;
2
3
use Test;
4
5
-plan 29;
+plan 32;
6
7
# L<S03/List prefix precedence/The list contextualizer>
8
@@ -88,4 +88,22 @@ eval_dies_ok('@', 'Anonymous @ variable outside of declaration');
88
eval_dies_ok('%', 'Anonymous % variable outside of declaration');
89
eval_dies_ok('&', 'Anonymous & variable outside of declaration');
90
91
+# RT #76320
92
+{
93
+ my $h = <a b c d>;
94
+ is ~%$h.keys.sort, 'a c', '%$var coercion';
95
+
96
+ my $c = 0;
97
+ $c++ for @$h;
98
+ is $c, 4, '@$var coercion';
99
+}
100
101
+#?rakudo skip '$@var syntax'
102
103
+ my @a = <a b c d>;
104
105
+ $c++ for $@a;
106
+ is $c, 1, '$@var itemization'
107
108
109
# vim: ft=perl6
0 commit comments