diff --git a/source/taggedalgebraic.d b/source/taggedalgebraic.d index 6c80d47..d30cc0e 100644 --- a/source/taggedalgebraic.d +++ b/source/taggedalgebraic.d @@ -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) {