fixes #12281 [backport]

This commit is contained in:
Andreas Rumpf 2019-09-30 20:42:16 +02:00
commit 72acf5de94
2 changed files with 9 additions and 6 deletions

View file

@ -751,7 +751,9 @@ proc track(tracked: PEffects, n: PNode) =
discard
else:
message(tracked.config, arg.info, warnProveInit, $arg)
createTypeBoundOps(tracked.graph, tracked.c, n[1].typ.lastSon, n.info)
# check required for 'nim check':
if n[1].typ.len > 0:
createTypeBoundOps(tracked.graph, tracked.c, n[1].typ.lastSon, n.info)
for i in 0 ..< safeLen(n):
track(tracked, n.sons[i])
of nkDotExpr: