From b0081000e1e778039ae66ce600114de3241c058f Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 2 Apr 2026 16:23:36 +0800 Subject: [PATCH] fixes #25617; handle backend type aliasing in procParamTypeRel --- compiler/sigmatch.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index b42e69cd56..2a9d6451e5 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -784,6 +784,9 @@ 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): + result = isNone + if result <= isSubrange or inconsistentVarTypes(f, a): result = isNone