On Tue Sep 01 13:21:08 2015, barto...@gmx.de wrote: > Current failure mode (branch 'glr', perl6 version 2015.07.1-682- > g57b7ebc built on MoarVM version 2015.07-108-g7e9f29e): > > $ perl6-m -e 'sub foo ($bar :D) { 1; }' > ===SORRY!=== > Cannot invoke this object (REPR: P6opaque, cs = 0) > Now gives a better error:
===SORRY!=== Error while compiling -e Invalid typename 'D' in parameter declaration. at -e:1 ------> sub foo ($bar :D<HERE>) { 1; } It considers it (correctly enough) as a type name because it's after the invocant separator :. Test added to S32-exceptions/misc.t.