Skip to content

Commit

Permalink
fixes #15510 (#15523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Oct 8, 2020
1 parent aa0b735 commit cfba237
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/sempass2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,10 @@ proc track(tracked: PEffects, n: PNode) =
for i in 0..<n.len:
track(tracked, n[i])
if tracked.owner.kind != skMacro:
createTypeBoundOps(tracked, n[i].typ, n.info)
if n[i].kind == nkExprColonExpr:
createTypeBoundOps(tracked, n[i][0].typ, n.info)
else:
createTypeBoundOps(tracked, n[i].typ, n.info)
checkForSink(tracked.config, tracked.owner, n[i])
of nkPragmaBlock:
let pragmaList = n[0]
Expand Down

0 comments on commit cfba237

Please sign in to comment.