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 a1e114c commit c0c24abCopy full SHA for c0c24ab
S02-types/subset.t
@@ -1,6 +1,6 @@
1
use v6;
2
use Test;
3
-plan 42;
+plan 44;
4
5
=begin description
6
@@ -184,4 +184,17 @@ lives_ok { my Bug::RT80930 $rt80930 }, 'subset with "::" in the name';
184
185
}
186
187
+# RT #73344
188
+my $a = 1;
189
+{
190
+ my $a = 3;
191
+ sub producer {
192
+ my $a = 2;
193
+ sub bar($x where $a ) { $x }
194
+ }
195
+ my &bar := producer();
196
+ lives_ok { bar(2) }, 'where-constraint picks up the right lexical (+)';
197
+ dies_ok { bar(1) }, 'where-constraint picks up the right lexical (-)';
198
+}
199
+
200
# vim: ft=perl6
0 commit comments