From 251956b0643b54ad32a680e5d3fd9329919f3a32 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 2 Apr 2026 16:53:19 +0800 Subject: [PATCH] progress --- compiler/sigmatch.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 2a9d6451e5..efeaf91f6d 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -784,7 +784,10 @@ proc procParamTypeRel(c: var TCandidate; f, a: PType): TTypeRelation = # if f is metatype. result = typeRel(c, f, a) - if result == isEqual and not sameBackendTypePickyAliases(f, a): + if result == isEqual and + not containsGenericType(f) and not containsGenericType(a) and + not containsUnresolvedType(f) and not containsUnresolvedType(a) and + not sameBackendTypePickyAliases(f, a): result = isNone if result <= isSubrange or inconsistentVarTypes(f, a):