diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-02-23 08:44:08 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-23 08:44:08 +0100 |
commit | ea409fb15a62ff098e5de70efa780228b5d5aac0 (patch) | |
tree | b0f7b085592666d142444edecb0bf98e74edd83b /compiler/semtypinst.nim | |
parent | 721bf7188bfff3a3ae1db44bece57cca3dfe8461 (diff) | |
download | Nim-ea409fb15a62ff098e5de70efa780228b5d5aac0.tar.gz |
first steps in implementing 'owned' pointers; undocumented, do not use
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r-- | compiler/semtypinst.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index ceabd8e60..002f4f402 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -574,7 +574,7 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType = var r = replaceTypeVarsT(cl, result.sons[i]) if result.kind == tyObject: # carefully coded to not skip the precious tyGenericInst: - let r2 = r.skipTypes({tyAlias, tySink}) + let r2 = r.skipTypes({tyAlias, tySink, tyOwned}) if r2.kind in {tyPtr, tyRef}: r = skipTypes(r2, {tyPtr, tyRef}) result.sons[i] = r |