parent
2ea7287217
commit
f65f760dee
5 changed files with 18 additions and 3 deletions
|
|
@ -100,6 +100,15 @@ proc fitNode(c: PContext, formal: PType, arg: PNode; info: TLineInfo): PNode =
|
|||
else:
|
||||
result = fitNodePostMatch(c, formal, result)
|
||||
|
||||
proc fitNodeForLocalVar(c: PContext, formal: PType, arg: PNode; info: TLineInfo): PNode =
|
||||
let a = fitNode(c, formal, arg, info)
|
||||
if formal.kind in {tyVar, tyLent}:
|
||||
#classifyViewType(formal) != noView:
|
||||
result = newNodeIT(nkHiddenAddr, a.info, formal)
|
||||
result.add a
|
||||
else:
|
||||
result = a
|
||||
|
||||
proc inferWithMetatype(c: PContext, formal: PType,
|
||||
arg: PNode, coerceDistincts = false): PNode
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue