On Mon, 29 May 2017 11:36:49 -0700, c...@zoffix.com wrote: > On Mon, 29 May 2017 10:02:27 -0700, thunderg...@comcast.net wrote: > > Using a cross meta operator on an empty list complains "This type > > (Scalar) does not support elems". > > > > say (1,2).elems; say ().elems; say (1,2) X (); > > > > yields "20This type (Scalar) does not support elems" > > > > Seems to work correctly with arrays instead of lists. > > > > say [1,2].elems; say [].elems; say [1,2] X []; > > > > > > Linux Mint 17.2 > > > > >perl6 -v > > >This is Rakudo version 2017.05 built on MoarVM version 2017.05 > > implementing Perl 6.c. > > > Thank you for the report. lizmat++ fixed the issue. > > Fix: https://github.com/rakudo/rakudo/commit/9494cbd3b9 > Test: https://github.com/perl6/roast/commit/0faf3c354f
Re-opening, because it hasn't been fixed for the Xop case yet: ➜ say () X+ (1, 2); This type (Scalar) does not support elems ➜ say (1,2) X~ (); This type (Scalar) does not support elems ➜ say () X=> (); This type (Scalar) does not support elems Bisectable¹ blames a commit² from January. --- [1] https://gist.github.com/Whateverable/f1b3066f1e2c45df7ab5e0aa7aeee3a7 [2] https://github.com/rakudo/rakudo/commit/a26f51361 --- This is Rakudo version 2017.09-142-ga89add0bf built on MoarVM version 2017.09.1-49-gb3dd812a implementing Perl 6.c.