On Sat Jan 03 08:12:50 2015, barto...@gmx.de wrote:
> Nowadays @a[10] in a signature is parsed as a shaped array (and gives
> a fitting error message since shape declaration is NYI):
> 
> $ perl6 -e 'sub foo(@a[10]) { }'
> ===SORRY!=== Error while compiling -e
> Shape declaration is not yet implemented; please use whitespace if you
> meant a subsignature for unpacking
> at -e:1
> ------> sub foo(@a⏏[10]) { }
>     expecting any of:
>         shape declaration
> 
> Should we add a test for this error message and close this ticket or
> should the ticket stay open until shape declaration is implemented?

I implemented it and added tests in S06-signature/shape.t.

/jnthn

Reply via email to