fix typeRel of typeDesc (#21227)
This commit is contained in:
parent
a55604a3d8
commit
b68b28fd24
2 changed files with 10 additions and 2 deletions
|
|
@ -1840,7 +1840,9 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
|||
elif f.base.kind == tyNone:
|
||||
result = isGeneric
|
||||
else:
|
||||
result = typeRel(c, f.base, a.base, flags)
|
||||
let r = typeRel(c, f.base, a.base, flags)
|
||||
if r >= isIntConv:
|
||||
result = r
|
||||
|
||||
if result != isNone:
|
||||
put(c, f, a)
|
||||
|
|
@ -1848,7 +1850,9 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
|||
if tfUnresolved in f.flags:
|
||||
result = typeRel(c, prev.base, a, flags)
|
||||
elif a.kind == tyTypeDesc:
|
||||
result = typeRel(c, prev.base, a.base, flags)
|
||||
let r = typeRel(c, prev.base, a.base, flags)
|
||||
if r >= isIntConv:
|
||||
result = r
|
||||
else:
|
||||
result = isNone
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue