This commit is contained in:
Araq 2015-04-27 17:37:10 +02:00
commit b34bd3b163

View file

@ -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