# New Ticket Created by Moritz Lenz
# Please include the string: [perl #121885]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=121885 >
<moritz> m: class A { BEGIN {say A.^name } }
<camelia> rakudo-moar ea173d: OUTPUT«===SORRY!===Cannot invoke this object
(REPR: Null, cs = 0)»
This doesn't work because .^ is implemented as a dispatcher in class Mu;
at the time the .^ call is performed, A isn't fully composed, and thus
the dispatcher:<.^> from Mu isn't available.
If Rakudo instead rewrote it to A.HOW.name(A) internally, this fragility
could be avoided, thus I consider it a bug.
(Also, the error message is LTA).