[Bug 96] New: Unable to overload functions injected from mixins.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 8 14:09:38 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=96

           Summary: Unable to overload functions injected from mixins.
           Product: D
           Version: 0.151
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: daiphoenix at lycos.com


The following code doesn't compile:

template T1() {
        void func(int x) { }
}

template T2() {
        void func() { }
}

mixin T1!();
mixin T2!();

void main()
{
        func(); // A name conflict occurs here between the two func's.
}


-- 




More information about the Digitalmars-d-bugs mailing list