[Issue 13848] overlapping initialization for r
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 10 21:46:35 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13848
--- Comment #4 from deadalnix <deadalnix at gmail.com> ---
S type;
template TplMixin() {
union {
D d1;
ulong raw;
}
D d2;
auto fun() {
return S(d1, d2);
}
}
struct D {
}
alias SS = typeof(S.init.fun());
struct S {
mixin TplMixin;
this(D d1, D d2) { }
this(SS* ) { }
}
--
More information about the Digitalmars-d-bugs
mailing list