Order matters on inheritance
Infiltrator
Infiltrator at d.irc
Wed Aug 21 18:49:18 PDT 2013
On Thursday, 22 August 2013 at 01:43:45 UTC, JS wrote:
> I don't know what the expected behavior is but it seems
> odd/wrong:
>
> http://dpaste.dzfl.pl/a390f1f4
>
> Note that there are two issues here(almost the same). First is
> that A.foo isn't called and second is that the order of
> inheritance on A matters(: X, Y vs : Y,X).
>
>
> I would expect that A.foo(A) should match first and the
> ambiguity created from the inheritance should result in an
> error.
There is a bug out for this. Please upvote it. :)
http://d.puremagic.com/issues/show_bug.cgi?id=10806
More information about the Digitalmars-d-learn
mailing list