Actually, the Z=> misbehavior is already called out in #128017.
On Tue, 28 Nov 2017 00:04:05 -0800, larry wrote:
> This also showed up when doing things like:
> enum Foo (<A B C> Z=> 1,2,3);
>
> Fixed in d9021cf16e7df051c5e17c33919c9bde44c5e0db but tests needed.
>
>
> On Mon, 07 Nov 2016 11:37:06 -0800, FROGGS.de wrote:
> > m: enum Foo ( A => 42, 'B', 'C', 'D' ); say +B
> > rakudo-moar e10f76: OUTPUT«43»
> >
> > m: enum Foo ( 'A' => 42, 'B', 'C', 'D' ); say +B
> > rakudo-moar e10f76: OUTPUT«1»
> >
> > m: enum Foo ( 'A' => 42, 'B', 'C', 'D' ); say +A
> > rakudo-moar e10f76: OUTPUT«===SORRY!=== Error while compiling
> > <tmp>Undeclared name: A used at line 1»
> >
> > B should either yield 43, or the entire expression should fail to parse.
> > (I'd prefer the former fwiw.)
> >
>
>