[Issue 9851] New: Mixed-in constructor is not taken into account during construction
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 31 15:07:09 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9851
Summary: Mixed-in constructor is not taken into account during
construction
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-31 15:07:09 PDT ---
mixin template IntCtor()
{
this(int x)
{
}
}
struct S
{
mixin IntCtor!();
this(string x) { }
}
void main()
{
// Error: constructor test.S.this (string x) is not
// callable using argument types (int)
auto s = S(1);
}
--
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