fixes #15122 [backport:1.2] (#15139)

This commit is contained in:
Andreas Rumpf
2020-08-01 13:16:50 +02:00
committed by GitHub
parent e192e07bf0
commit 9ff2c50155
2 changed files with 29 additions and 0 deletions

View File

@@ -799,6 +799,7 @@ proc trackCall(tracked: PEffects; n: PNode) =
# check required for 'nim check':
if n[1].typ.len > 0:
createTypeBoundOps(tracked, n[1].typ.lastSon, n.info)
createTypeBoundOps(tracked, n[1].typ, n.info)
# new(x, finalizer): Problem: how to move finalizer into 'createTypeBoundOps'?