From bf4e688ca37ebfcedd64d2c8cb1854b287f56037 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 23 Feb 2019 20:58:14 +0100 Subject: [PATCH] make nimsuggest aware of tyOwned --- compiler/suggest.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/suggest.nim b/compiler/suggest.nim index d501acd466..4be6407735 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: