From d6fbe9b814cc438b2afc81b1397d3101ab66cf02 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 23 Dec 2025 21:09:16 +0800 Subject: [PATCH] Update sigmatch.nim --- compiler/sigmatch.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index dd5883ab6c..eb141125e8 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -160,10 +160,7 @@ proc matchGenericParam(m: var TCandidate, formal: PType, n: PNode) = arg = newTypeS(tyStatic, m.c, son = evaluated.typ) arg.n = evaluated elif formalBase.kind == tyTypeDesc: - if arg.kind != tyTypeDesc and - n.kind == nkSym and n.sym.kind == skType: - # make sure we have a type here - arg = makeTypeDesc(m.c, arg) + discard else: arg = arg.skipTypes({tyTypeDesc}) let tm = typeRel(m, formal, arg)