digitalmars.D.bugs - [Issue 19729] New: Constructor overloads coming from mixin are not
- d-bugmail puremagic.com (43/44) Mar 10 2019 https://issues.dlang.org/show_bug.cgi?id=19729
https://issues.dlang.org/show_bug.cgi?id=19729 Issue ID: 19729 Summary: Constructor overloads coming from mixin are not resolved Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: b2.temp gmx.com While this work: --- mixin template Templ(T) { void foo(T) {} } class C { mixin Templ!int; mixin Templ!string; } void main() { auto c = new C; c.foo("should work"); } --- This does not: --- mixin template Templ(T) { this(T) {} } class C { mixin Templ!int; mixin Templ!string; } void main() { auto c = new C("should work"); } --- And fails with a bad error message:Error: overloadset `bn.C.__ctor` is aliased to a function--
Mar 10 2019