summary refs log tree commit diff stats
path: root/compiler/suggest.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-02-23 20:58:14 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-25 16:37:09 +0100
commitbf4e688ca37ebfcedd64d2c8cb1854b287f56037 (patch)
tree10509efa558c95c454cd8ec08b1d145868a9f1cb /compiler/suggest.nim
parent2074ad141603361b7a0f32f9d3b855f33587b49d (diff)
downloadNim-bf4e688ca37ebfcedd64d2c8cb1854b287f56037.tar.gz
make nimsuggest aware of tyOwned
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r--compiler/suggest.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim
index d501acd46..4be640773 100644
--- a/compiler/suggest.nim
+++ b/compiler/suggest.nim
@@ -395,7 +395,7 @@ proc suggestFieldAccess(c: PContext, n, field: PNode, outputs: var Suggestions)
     suggestOperations(c, n, field, typ, outputs)
   else:
     let orig = typ # skipTypes(typ, {tyGenericInst, tyAlias, tySink})
-    typ = skipTypes(typ, {tyGenericInst, tyVar, tyLent, tyPtr, tyRef, tyAlias, tySink})
+    typ = skipTypes(typ, {tyGenericInst, tyVar, tyLent, tyPtr, tyRef, tyAlias, tySink, tyOwned})
     if typ.kind == tyObject:
       var t = typ
       while true: