use v6.d;

my @foo;
$foo[1] = 42