[Issue 7560] Expanding inherited overload sets gives error

2012-02-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7560



--- Comment #1 from blm...@gmail.com 2012-02-22 07:20:05 PST ---
For some reason, it appears that my test case actually does compile :)
I guess I'd better check my test cases next time.
The original code is still broken, though; I'll try to put together a test case
that actually breaks.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 7560] Expanding inherited overload sets gives error

2012-02-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7560



--- Comment #2 from blm...@gmail.com 2012-02-22 16:05:39 PST ---
I found a test case that should work:

class Base {
template getter(T) {
void get(ref T[] i, uint n) {}
}
mixin getter!uint;
mixin getter!char;
}

class Derived: Base {
alias Base.get get;
void get(ref char[] x) {}
}

It appears to be a problem with trying to create new overloads when the base
class overloads are put there by multiple mixins. Using only one mixin seems to
work fine.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---