parent
9cb5ab0108
commit
fa0209609d
5 changed files with 33 additions and 12 deletions
|
|
@ -625,7 +625,7 @@ proc procTypeRel(c: var TCandidate, f, a: PType): TTypeRelation =
|
|||
return isNone
|
||||
elif a[0] != nil:
|
||||
return isNone
|
||||
|
||||
|
||||
result = getProcConvMismatch(c.c.config, f, a, result)[1]
|
||||
|
||||
when useEffectSystem:
|
||||
|
|
@ -2272,6 +2272,8 @@ proc prepareOperand(c: PContext; formal: PType; a: PNode): PNode =
|
|||
else:
|
||||
result = a
|
||||
considerGenSyms(c, result)
|
||||
if result.kind != nkHiddenDeref and result.typ.kind in {tyVar, tyLent} and c.matchedConcept == nil:
|
||||
result = newDeref(result)
|
||||
|
||||
proc prepareOperand(c: PContext; a: PNode): PNode =
|
||||
if a.typ.isNil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue