From 2be696fe01b8d8d73eb60a20f27d45e4d3fc26da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 14 Jan 2021 10:39:08 +0100 Subject: [PATCH] Add static assertion error message. --- source/vibe/internal/traits.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/vibe/internal/traits.d b/source/vibe/internal/traits.d index 6c1344b..f9e14b9 100644 --- a/source/vibe/internal/traits.d +++ b/source/vibe/internal/traits.d @@ -343,7 +343,8 @@ unittest { // tuple fields bool areConvertibleTo(alias TYPES, alias TARGET_TYPES)() if (isGroup!TYPES && isGroup!TARGET_TYPES) { - static assert(TYPES.expand.length == TARGET_TYPES.expand.length); + static assert(TYPES.expand.length == TARGET_TYPES.expand.length, + "Argument count does not match."); foreach (i, V; TYPES.expand) if (!is(V : TARGET_TYPES.expand[i])) return false;