On Thu, 08 Mar 2018 09:52:50 -0800, jan-olof.hen...@bredband.net wrote: > On Wed, 04 Nov 2015 12:43:18 -0800, dhoek...@gmail.com wrote: > > In perl6 version 2015.10-158-gbccb16d built on MoarVM version > > 2015.10-46-g5bf7e46: > > > > Looking at the code for Hamming numbers at Rosetta Code found this > > problem: > > > > my @z = <1 2>; > > say @z X* @z X* @z; # OK > > say (@z X* @z) X* @z; # OK > > say @z X* (@z X* @z).Array; # OK > > say @z X* (@z X* @z); # fails > > > > (1 2 2 4 2 4 4 8) > > (1 2 2 4 2 4 4 8) > > (1 2 2 4 2 4 4 8) > > ===SORRY!=== > > Cannot invoke this object (REPR: Uninstantiable) > > > > Likewise fails for other arithmetic operations (+, -, /, **), as well > > as: > > > > my @y = <a b>; > > say @y X~ (@y X~ @y); # fails > > > > But ',' works with both @x and @y. > > This was fixed with commit a26f51361bfea213fa59749d7a401e09c8f2ef31. > Tests needed.
Tests added with roast commit https://github.com/perl6/roast/commit/b68073aa15