# New Ticket Created by  Jonathan Stowe 
# Please include the string:  [perl #125662]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125662 >


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.

Reply via email to