Skip to content

Commit ecd8da2

Browse files
committed
RT #77922, Hash.new
1 parent 6cfc6bd commit ecd8da2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

S02-types/hash.t

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

33
use Test;
44

5-
plan 79;
5+
plan 80;
66

77
# basic lvalue assignment
88
# L<S09/Hashes>
@@ -279,6 +279,13 @@ eval_lives_ok('my $rt75694 = { has-b => 42 }', "can have a bareword key starting
279279
"can have a bareword 'grammar' as a hash key";
280280
}
281281

282+
# RT #77922
283+
{
284+
my $h = Hash.new(a => 3);
285+
$h<a> = 5;
286+
is $h<a>, 5, 'can normally modify items created from Hash.new';
287+
}
288+
282289
done;
283290

284291
# vim: ft=perl6

0 commit comments

Comments
 (0)