Fix a CI failure during koch doc

This commit is contained in:
Zahary Karadjov
2020-03-30 01:38:59 +03:00
committed by Andreas Rumpf
parent e63b673ce2
commit 2b66d66567

View File

@@ -996,7 +996,8 @@ proc track(tracked: PEffects, n: PNode) =
createTypeBoundOps(tracked, x[1].typ, n.info)
if x.kind == nkExprColonExpr:
notNilCheck(tracked, x[1], x[0].sym.typ)
if x[0].kind == nkSym:
notNilCheck(tracked, x[1], x[0].sym.typ)
checkForSink(tracked.config, tracked.owner, x[1])
else:
checkForSink(tracked.config, tracked.owner, x)