This commit is contained in:
cooldome 2020-01-04 01:33:13 +00:00 • committed by Clyybber
commit 47e7b8771c
2 changed files with 84 additions and 2 deletions

View file

@ -1019,7 +1019,7 @@ proc trackProc*(c: PContext; s: PSym, body: PNode) =
for i in 1..<params.len:
let param = params[i].sym
if isSinkTypeForParam(param.typ):
createTypeBoundOps(t.graph, t.c, param.typ, param.info)
createTypeBoundOps(t, param.typ, param.info)
if not isEmptyType(s.typ[0]) and
({tfNeedsInit, tfNotNil} * s.typ[0].flags != {} or