summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sempass2.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim
index a2da2f2e4..6db6448df 100644
--- a/compiler/sempass2.nim
+++ b/compiler/sempass2.nim
@@ -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'?