Thanks for the report! Fixed with https://github.com/rakudo/rakudo/commit/bf95bcb6c0 Tests will be added shortly.
> On 13 Jun 2017, at 00:52, Zoffix Znet (via RT) <perl6-bugs-follo...@perl.org> > wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #131561] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=131561 > > > > Detected by pre-release ecosystem toasting. > > Clifford.pm6 module currently fails due List.MixHash coercer > fails to delete the key when the final weight ends up being zero: > > <Zoffix> c: 2017.05,HEAD dd (0 => 1, 0 => -1, 0 => 0, ).MixHash > <committable6> Zoffix, ¦2017.05: «().MixHash» ¦HEAD(abfb52b): > «(0=>0).MixHash» > > The issue only appears to happen the weights change from non-zero to zero > while going through Pairs: > > <Zoffix> c: 2017.05,HEAD dd (0 => 0, ).MixHash > <committable6> Zoffix, ¦2017.05,HEAD(abfb52b): «().MixHash» > <Zoffix> c: 2017.05,HEAD dd (0 => 0, 0 => 0,).MixHash > <committable6> Zoffix, ¦2017.05,HEAD(abfb52b): «().MixHash»