Skip to content

Commit

Permalink
Merge pull request #368 from ronaldxs/no-strict-autovivify-2-level-hash
Browse files Browse the repository at this point in the history
`no strict` autovivification 2 level hash
  • Loading branch information
zoffixznet committed Dec 12, 2017
2 parents ba86027 + aa5691d commit 9abb9ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S02-names/strict.t
Expand Up @@ -33,11 +33,12 @@ is $Foo::foo, 42, 'lax declared variable is package scoped';

# RT #125398
subtest '`no strict` does not cause autovivification container issues' => {
plan 3;
plan 4;

no strict;
%h<a> = 42;
lives-ok { temp %h<b> = 8 }, '`temp` on Hash key';
lives-ok { let %h<c> = 9 }, '`let` on Hash key';
lives-ok { %h<d><e> }, 'postcircumfix {} on Hash key'; # RT #125183
isa-ok %h<non-existent>, Any, 'non-existent keys are `Any`';
}

0 comments on commit 9abb9ae

Please sign in to comment.