On Fri Jul 08 15:13:43 2016, pochi wrote:
> The following statement:
> 
> my Array[Numerix] $x;
> 
> produces this error message:
> 
> ===SORRY!=== Error while compiling ./x.pl6
> An exception occurred while parameterizing Array
> at ./x.pl6:1
> Exception details:
>   ===SORRY!=== Error while compiling
>   Cannot invoke this object (REPR: Null; VMNull)
>   at :
> 
> It would be nice if it gave a message similar to when one misspells an
> unparameterized type:
> 
> Type 'Numerix' is not declared. Did you mean 'Numeric'?

You can parameterize on more than types, so the error can't quite be that. But 
now it's very close:

$ ./perl6-m -e 'my Array[Numerix] $x;'
===SORRY!=== Error while compiling -e
Undeclared name:
    Numerix used at line 1. Did you mean 'Numeric'?

Test added to S32-exceptions/misc.t to make sure we don't regress on this in 
the future.

Reply via email to