summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorOscar Campbell <oscar@campbell.nu>2015-06-07 13:16:08 +0200
committerOscar Campbell <oscar@campbell.nu>2015-06-07 13:16:08 +0200
commit858cdd0b05df4846fb40a3263f05e54438995e99 (patch)
tree939fb5e27650e4e7a24698b3c3dac5acada396b1 /compiler/ast.nim
parent87a6d08e95c940775577c8f2bc5a74408c956a89 (diff)
parentbbb1bdb4a939aa43ed981acc2f96bce918be7d21 (diff)
downloadNim-858cdd0b05df4846fb40a3263f05e54438995e99.tar.gz
Merge remote-tracking branch 'upstream/devel' into devel
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r--compiler/ast.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index c349f81ed..c141352cb 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -1346,7 +1346,7 @@ proc propagateToOwner*(owner, elem: PType) =
       owner.flags.incl tfHasAsgn
 
   if owner.kind notin {tyProc, tyGenericInst, tyGenericBody,
-                       tyGenericInvocation}:
+                       tyGenericInvocation, tyPtr}:
     let elemB = elem.skipTypes({tyGenericInst})
     if elemB.isGCedMem or tfHasGCedMem in elemB.flags:
       # for simplicity, we propagate this flag even to generics. We then