fixes #2577
This commit is contained in:
parent
d3b0292d4e
commit
b34bd3b163
1 changed files with 1 additions and 0 deletions
|
|
@ -922,6 +922,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
|
||||||
|
|
||||||
of tyAnd:
|
of tyAnd:
|
||||||
considerPreviousT:
|
considerPreviousT:
|
||||||
|
result = isEqual
|
||||||
for branch in f.sons:
|
for branch in f.sons:
|
||||||
let x = typeRel(c, branch, aOrig)
|
let x = typeRel(c, branch, aOrig)
|
||||||
if x < isSubtype: return isNone
|
if x < isSubtype: return isNone
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue