Skip Menu |
Report information
Id: 125662
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: jns+bc [at] gellyfish.co.uk
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Unknown type error being hidden in trait definittion.
Download (untitled) / with headers
text/plain 565b
multi trait_mod:<is>(Routine $r, :$foo!) { $r does Foo; }; class Bar { method boom() is foo {}; }; Gives rise to ye olde: ===SORRY!=== Error while compiling -e Cannot invoke this object (REPR: Null, cs = 0) at -e:1 In fact any combination where a "type object" is used in this place that isn't defined: multi trait_mod:<is>(Routine $r, :$foo!) { Bar }; sub boom is foo {} does the same. I thought that I had reported this before but it seems not. There seems to be a whole category of the errors being ignored and it ploughing on in a broken state like this.
Still reproducible (2017.11,HEAD(e5b660e)), with slightly different message:

Show quoted text
===SORRY!=== Error while compiling -e
Cannot invoke this object (REPR: Null; VMNull)
at -e:1

On 2015-07-21 11:54:54, jns+bc@gellyfish.co.uk wrote:
Show quoted text
> multi trait_mod:<is>(Routine $r, :$foo!) { $r does Foo; }; class Bar {
> method boom() is foo {}; };
>
> Gives rise to ye olde:
>
> ===SORRY!=== Error while compiling -e
> Cannot invoke this object (REPR: Null, cs = 0)
> at -e:1
>
> In fact any combination where a "type object" is used in this place
> that isn't defined:
>
> multi trait_mod:<is>(Routine $r, :$foo!) { Bar }; sub boom is foo {}
>
> does the same.
>
> I thought that I had reported this before but it seems not.
>
> There seems to be a whole category of the errors being ignored and it
> ploughing on in a broken state like this.




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org