# New Ticket Created by Stephane Payrard
# Please include the string: [perl #52276]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=52276 >
but n-array composer with n > 1 works correctly
$ alias rakudo
alias rakudo='./parrot languages/perl6/perl6.pbc'
$ rakudo -e 'my @a = [1]; say @a[0]'
get_pmc_keyed() not implemented in class 'Integer'
current instr.: '_block10' pc 44 (EVAL_11:25)
called from Sub 'parrot;PCT::HLLCompiler;eval' pc 823
(src/PCT/HLLCompiler.pir:476)
called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1314
(src/PCT/HLLCompiler.pir:704)
called from Sub 'parrot;Perl6::Compiler;main' pc 8199 (perl6.pir:169)
$ rakudo -e 'my @a = []; say @a[0]'
error:imcc:syntax error, unexpected COMMA (',')
in file 'EVAL_11' line 15
error:imcc:syntax error, unexpected '\n'
in file 'EVAL_11' line 17
get_pmc_keyed() not implemented in class 'Undef'
current instr.: '_block10' pc 31 (EVAL_11:23)
called from Sub 'parrot;PCT::HLLCompiler;eval' pc 823
(src/PCT/HLLCompiler.pir:476)
called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1314
(src/PCT/HLLCompiler.pir:704)
called from Sub 'parrot;Perl6::Compiler;main' pc 8199 (perl6.pir:169)
$ rakudo -e 'my @a = [1,2]; say @a[1]'
2
--
cognominal stef