From 5069d9da7ef369f7725b84aa7f2d369e85290e39 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 18 Feb 2026 21:09:35 +0800 Subject: [PATCH] Update compiler/semtypes.nim Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- compiler/semtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index a7bae6674d..e87a8f760f 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -568,7 +568,7 @@ proc semTuple(c: PContext, n: PNode, prev: PType): PType = else: localError(c.config, a.info, errTypeExpected) typ = errorType(c) - if typ != nil and typ.kind == tyVoid: + if typ != nil and skipTypes(typ, {tyGenericInst, tyAlias, tySink}).kind == tyVoid: localError(c.config, a.info, "'void' is not allowed as a field type") typ = errorType(c) for j in 0..