mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-22 06:40:55 +00:00
fixes #25617; handle backend type aliasing in procParamTypeRel
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user