parent
fbc97e712a
commit
49b28f1997
2 changed files with 49 additions and 3 deletions
|
|
@ -1823,9 +1823,11 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
|||
if not exprStructuralEquivalent(aOrig.n, reevaluated.typ.n):
|
||||
result = isNone
|
||||
else:
|
||||
localError(c.c.graph.config, f.n.info, "type expected")
|
||||
result = isNone
|
||||
|
||||
# bug #14136: other types are just like 'tyStatic' here:
|
||||
result = typeRel(c, a, reevaluated.typ)
|
||||
if result != isNone and reevaluated.typ.n != nil:
|
||||
if not exprStructuralEquivalent(aOrig.n, reevaluated.typ.n):
|
||||
result = isNone
|
||||
of tyNone:
|
||||
if a.kind == tyNone: result = isEqual
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue