sigmatch: hotfix [backport] (#15565)
This commit is contained in:
parent
fc90eb9f27
commit
c664fb2843
1 changed files with 2 additions and 2 deletions
|
|
@ -1107,7 +1107,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
||||||
let x = typeRel(c, f, branch, flags + {trDontBind})
|
let x = typeRel(c, f, branch, flags + {trDontBind})
|
||||||
if x == isNone: return isNone
|
if x == isNone: return isNone
|
||||||
if x < result: result = x
|
if x < result: result = x
|
||||||
return
|
return result
|
||||||
|
|
||||||
of tyAnd:
|
of tyAnd:
|
||||||
# XXX: deal with the current dual meaning of tyGenericParam
|
# XXX: deal with the current dual meaning of tyGenericParam
|
||||||
|
|
@ -1441,7 +1441,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
||||||
let ff = rootf[i]
|
let ff = rootf[i]
|
||||||
let aa = roota[i]
|
let aa = roota[i]
|
||||||
let res = typeRel(c, ff, aa, nextFlags)
|
let res = typeRel(c, ff, aa, nextFlags)
|
||||||
if res != isEqual: result = isGeneric
|
if res != isNone and res != isEqual: result = isGeneric
|
||||||
if res notin {isEqual, isGeneric}:
|
if res notin {isEqual, isGeneric}:
|
||||||
if trNoCovariance notin flags and ff.kind == aa.kind:
|
if trNoCovariance notin flags and ff.kind == aa.kind:
|
||||||
let paramFlags = rootf.base[i-1].flags
|
let paramFlags = rootf.base[i-1].flags
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue