# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #74668]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74668 >
<jnthn> rakudo: use MONKEY_TYPING; class A {}; class B { }; augment
class B is A { };
<p6eval> rakudo f6ec0a: OUTPUT«Could not build C3 linearization:
ambiguous hierarchy [...]
<jnthn> Heh
* masak submits rakuodbug
<masak> jnthn: good catch :)
<jnthn> Changing the inheritance hieraarchy in augment is just...nasty.
<masak> why?
<jnthn> Well, consider the above example. You're now multiply inheriting.
<jnthn> If it worked, from Any and then form A.
<jnthn> With Any taking precedence.
<masak> aye.
<jnthn> Also though, don't expect this to get fixed any time soon.
<masak> it's not a priority :)
<jnthn> I'll put in a nice error saying it's not allowed to do this yet.
<masak> jnthn++
<jnthn> But the deeper issue is that Parrot classes don't allow you to
modify the inheritance hierarchy post-instantiation.