[Issue 277] Named mixin operator resolution

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 13 22:21:48 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=277





------- Comment #1 from xergen at hotmail.com  2006-08-14 00:21 -------
Also, operator selection doesnt happen with names.
for example:

template Foo()
{
 void opAddAssign(int x)
 {
 }
}

class Bar
{
 mixin Foo a;
 mixin Foo b;
}

Bar b;
bar.a += 2; // ambiguouity error
bar.a.opAddAssign(2); // works


-- 




More information about the Digitalmars-d-bugs mailing list