Andy Bach writes (>):
> Hmm:
> ./perl6 -e 'my $x = :a<5>; say $x.map({.key, .value + 1}).perl'
> ["a", 6]
> 
> ./perl6 -e 'my $x = :a<5>; say $x.map({.key => .value + 1}).perl'
> Method 'key' not found for invocant of class 'Failure'
> 
> so it's the 'supercomma' that's troubled?

Seems like it. The pair composer likely imposes hash block parsing on
the surrounding block. I'm not savvy enough about hash block parsing
rules to know if this is correct or not.

Reply via email to