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 c7d9b73 commit bca6134Copy full SHA for bca6134
S02-literals/autoref.t
@@ -16,7 +16,7 @@ use Test;
16
17
=end description
18
19
-plan 57;
+plan 59;
20
21
# Implicit referentiation of arrays in assignment
22
{
@@ -288,4 +288,14 @@ plan 57;
288
is +$pair.key, 2, '({...} => "value") works';
289
}
290
291
+# RT #76462
292
+{
293
+ lives_ok { my $a = (\my %h)<a> },
294
+ 'no Null PMC access when hash indexing a hash ref';
295
+ my %h = ( 'a' => 1, 'b' => 2 );
296
+ my $h_ref = \%h;
297
+ lives_ok { my $b = $h_ref.{"a"} },
298
+ 'no Null PMC access when trying to hash index a Capture';
299
+}
300
+
301
# vim: ft=perl6
0 commit comments