On Thu Oct 23 04:51:47 2014, masak wrote: > <smls> m: my Int @a; @a[4]++; say @a[0]; say @a > <camelia> rakudo-moar 315ec6: OUTPUT«(Int)(Any) (Any) (Any) (Any) 1» > <smls> Is that *supposed* to say "(Any)" there? > <moritz> no, (Int) > * masak submits rakudobug
Actually, the typed array seems to contain (Int) type objects -- as the output of @a[0] also shows: $ perl6 -e 'my Int @a; @a[4]++; say @a[0]; say @a.perl' (Int) Array[Int].new(Int, Int, Int, Int, 1) The problem seems to be in .gist (which is called with 'say @a' in the first evaluation). More specifically, .gist calls .map on @a and the type info is not present within .map. (Also reported in https://rt.perl.org/Ticket/Display.html?id=120071). $ perl6 -e 'my Int @a; @a[4]++; @a.map:{say .WHAT.perl};' Any Any Any Any Int I'm going to change the subject of this ticket and add a reference to RT #120071.
