[Issue 13283] dmd fails to generate ambiguous overload error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 7 11:32:04 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=13283
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
It's not clear what the original code and the problem with the linker was. Just
to check, without the constraint, this code is fine:
struct S{
this (Elements...)(Elements elements){...}
this (Element element){...}
}
S s = S(Element.init);
The above call matches this(Element), the constructor template is less
specialized.
--
More information about the Digitalmars-d-bugs
mailing list