This commit is contained in:
Andreas Rumpf 2020-10-08 15:28:23 +02:00 • committed by GitHub
commit cfba237d14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1065,6 +1065,9 @@ proc track(tracked: PEffects, n: PNode) =
for i in 0..<n.len: for i in 0..<n.len:
track(tracked, n[i]) track(tracked, n[i])
if tracked.owner.kind != skMacro: if tracked.owner.kind != skMacro:
if n[i].kind == nkExprColonExpr:
createTypeBoundOps(tracked, n[i][0].typ, n.info)
else:
createTypeBoundOps(tracked, n[i].typ, n.info) createTypeBoundOps(tracked, n[i].typ, n.info)
checkForSink(tracked.config, tracked.owner, n[i]) checkForSink(tracked.config, tracked.owner, n[i])
of nkPragmaBlock: of nkPragmaBlock: