Skip to content

Commit 3203315

Browse files
committed
Add test for RT #78096
1 parent 58bd695 commit 3203315

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

S04-statement-parsing/hash.t

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Test;
33

44
# L<S04/Statement parsing/the hash list operator>
55

6-
plan 7;
6+
plan 8;
77

88
isa_ok hash('a', 1), Hash, 'hash() returns a Hash';
99
is hash('a', 1).keys, 'a', 'hash() with keys/values (key)';
@@ -18,4 +18,10 @@ is hash('a' => 1).values, 1, 'hash() with pair (values)';
1818
is hash(a => 1).keys, 'a', 'hash() with autoquoted pair (key)';
1919
is hash(a => 1).values, 1, 'hash() with autoquoted pair (values)';
2020

21+
#RT #78096
22+
{
23+
lives_ok { my @r=2..10,<j q k a>;my %v=j=>10,q=>10,k=>10,a=>1|11;},
24+
"q => doesn't trigger quoting construct";
25+
}
26+
2127
# vim: ft=perl6

0 commit comments

Comments
 (0)