fixes #25617; handle backend type aliasing in procParamTypeRel

This commit is contained in:
ringabout
2026-04-02 16:23:36 +08:00
parent d389d4fb2f
commit b0081000e1

View File

@@ -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