Skip to content

Commit

Permalink
Add tests for #4205
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Feb 18, 2021
1 parent d3fc568 commit 3c9f655
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S02-types/array-shapes.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 40;
plan 42;

# L<S09/Fixed-size arrays>

Expand Down Expand Up @@ -174,4 +174,11 @@ subtest '.Array on uninited shaped array' => {
eval-lives-ok 'my @*a[3]', "Accept dynamic shaped arrays"
}

# https://github.com/rakudo/rakudo/issues/4205
{
my @a[1] = 42;
lives-ok { (@a>>++).raku }, 'call .raku on result of hyper on shaped';
is-deeply @a[0], 43, 'did the hyper actually run';
}

# vim: expandtab shiftwidth=4

0 comments on commit 3c9f655

Please sign in to comment.