[Issue 197] New: mixin mixin repeated twice when error.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 15 18:50:23 PDT 2006


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

           Summary: mixin mixin repeated twice when error.
           Product: D
           Version: 0.160
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: huangl at tfol.net


the programe :

interface Interface
{
    void Method();
};

template CInterfaceImpl(Host)
{
    void Method()
    {
        printf("hello");
    }
}

class ClassOne : Interface
{
    mixin CInterfaceImpl!(ClassOne, Interface);
};

int main(char[][] argv)
{
    Interface p = new ClassOne;
    p.Method();

    return 0;
}

compile error normally but give a confusing error:

iftest.d(17): mixin mixin CInterfaceImpl!(ClassOne,Interface);
 does not match any template declaration

what's the "mixin mixin"?


-- 




More information about the Digitalmars-d-bugs mailing list