Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
ringabout
2026-05-07 21:34:57 +08:00
committed by GitHub
parent 6ade7056e7
commit 2d661a8724

View File

@@ -791,8 +791,8 @@ proc procParamTypeRel(c: var TCandidate; f, a: PType): TTypeRelation =
# different C types (size_t vs unsigned long long).
let fCheck = concreteType(c, f)
let aCheck = concreteType(c, a)
# Notes that `result` is equal, now
# we check whether they have the same backend type
# Note that `result` is equal; now check whether they have the same
# backend type.
if fCheck != nil and aCheck != nil and
not sameBackendTypePickyAliases(
fCheck.skipTypes({tyVar, tyLent, tySink, tyOwned}),