[Issue 7206] New: Constructor from mixin does not conflict with other constructors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 2 14:10:57 PST 2012
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: nobody at puremagic.com
ReportedBy: robert at octarineparrot.com
--- Comment #0 from Robert Clipsham <robert at 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: -------
More information about the Digitalmars-d-bugs
mailing list