From 2a7bd18695d5c2c213fad9b9e3c9565b6977da62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 20 Mar 2018 16:37:52 +0100 Subject: [PATCH] Allow TA(val, kind) construction for unique types, too. --- source/taggedalgebraic.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {