[Issue 7560] Expanding inherited overload sets gives error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 22 16:05:43 PST 2012


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



--- Comment #2 from blm768 at 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: -------


More information about the Digitalmars-d-bugs mailing list