Skip to content

Commit

Permalink
Test .List on uninited shaped arrays does not die
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jan 19, 2017
1 parent 890ca31 commit 1c61263
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S02-types/array-shapes.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 27;
plan 28;

# L<S09/Fixed-size arrays>

Expand Down Expand Up @@ -105,3 +105,13 @@ plan 27;
throws-like 'my @a[-9223372036854775808,-2]',
X::IllegalDimensionInShape;
}

# RT #130513
subtest '.List on uninited shaped array' => {
plan 2;

my @a[2;2];
my @result;
lives-ok { @result = @a.List }, 'does not die';
is-deeply @result, [Any xx 4], 'gives correct results';
}

0 comments on commit 1c61263

Please sign in to comment.