summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/semtypes.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 35abbc21d..ec4cea131 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -1050,6 +1050,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
           result.flags.incl tfIterator
           # XXX Would be nice if we could get rid of this
       result.sons[0] = r
+      propagateToOwner(result, r)
       result.n.typ = r
 
   if genericParams != nil and genericParams.len > 0: