Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #77048, autovivification of Array-typed scalars
  • Loading branch information
moritz committed Aug 7, 2012
1 parent db2d40c commit 5436ea7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S02-types/autovivification.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 12;
plan 13;

# L<S09/Autovivification/In Perl 6 these read-only operations are indeed non-destructive:>
{
Expand Down Expand Up @@ -77,4 +77,12 @@ sub bar ($baz is readonly) { } #OK not used
is %h<b>.join, '53', 'can autovivify in sub form of unshift';
}

# RT #77048
{
my Array $a;
$a[0] = '4';
$a[1] = '2';
is $a.join, '42', 'Can autovivify Array-typed scalar';
}

# vim: ft=perl6

0 comments on commit 5436ea7

Please sign in to comment.