This works now: $ perl6-m -e 'class A { has @.a of int }; my $foo = A.new; $foo.a = 1,2,3; say $foo.perl' A.new(a => array[int].new(1, 2, 3))
Also, there is no NPE with the REPL: $ echo 'class A { has @.a of int }' | perl6-j > > I added a test to S12-class/attributes.t with commit https://github.com/perl6/roast/commit/311b07e6b8 I'm closing this ticket as 'resolved'.