[Issue 13408] template mixins allows to declare duplicates

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 1 04:50:45 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13408

--- Comment #1 from Temtaime <temtaime at gmail.com> ---
There's one another issue.

mixin template R() {
    void foo() { writeln(1); }
    void foo() { writeln(2); }
}

struct S {
    mixin R;
}

void main() {
    S s;
}

This code compiles OK, but linker error.

--


More information about the Digitalmars-d-bugs mailing list