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

           Summary: Constructor from mixin does not conflict with other
                    constructors
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: rob...@octarineparrot.com


--- Comment #0 from Robert Clipsham <rob...@octarineparrot.com> 2012-01-02 
22:10:55 GMT ---
----
import std.stdio;

mixin template foo() {
    this() {
        writefln("a");
    }
}

class A {
    mixin foo!();
    this() {
        writefln("b");
    }
version(ErrorsAsExpected) {
    this() {
        writefln("c");
    }
}
}

void main() {
    A a = new A;
}
----
When the above is compiled, no error is given, however when
-version=ErrorsAsExpected is given an error occurs. Tested with dmd 2.057.

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

Reply via email to