Allow TA(val, kind) construction for unique types, too.

This commit is contained in:
Sönke Ludwig 2018-03-20 16:37:52 +01:00
parent 5fc3e16a83
commit 2a7bd18695

View file

@ -1188,7 +1188,7 @@ private string generateConstructors(U)()
}.format(tname, tname, tname, tname, tname, tname);
// type constructors with explicit type tag
foreach (tname; AmbiguousTypeFields!U)
foreach (tname; TypeTuple!(UniqueTypeFields!U, AmbiguousTypeFields!U))
ret ~= q{
this(typeof(U.%s) value, Kind type)
{