Skip to content

Commit 49795d8

Browse files
committed
Add test for R#2447
1 parent 246481f commit 49795d8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

S32-hash/map.t

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
22
use Test;
3-
plan 16;
3+
plan 18;
44

55
{
66
my %hash = :foo, :42bar;
@@ -80,4 +80,13 @@ subtest 'Map.gist shows only the first sorted 100 els' => {
8080
'Map does not introduce bogus Scalar containers';
8181
}
8282

83+
# R#2447
84+
{
85+
my %m is Map = a => { b => 42 };
86+
my $WHICH = %m.WHICH;
87+
%m<a><b> = 666;
88+
is %m<a><b>, 666, 'did we change the hash inside the map';
89+
is %m.WHICH, $WHICH, 'did the .WHICH stay unchanged';
90+
}
91+
8392
# vim: ft=perl6

0 commit comments

Comments
 (0)