From cce8a739da1b74f8d85785524a9b4865afcda3e2 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 1 Jul 2019 23:53:41 +0200 Subject: [PATCH] fixes #11633 --- compiler/dfa.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/dfa.nim b/compiler/dfa.nim index 824fd86825..e823a53309 100644 --- a/compiler/dfa.nim +++ b/compiler/dfa.nim @@ -659,7 +659,7 @@ proc isAnalysableFieldAccess*(orig: PNode; owner: PSym): bool = # pointer indirection. n = n[0] return n.kind == nkSym and n.sym.owner == owner and (isSinkParam(n.sym) or - n.sym.typ.skipTypes(abstractInst-{tyOwned}).kind in {tyOwned, tyVar}) + n.sym.typ.skipTypes(abstractInst-{tyOwned}).kind in {tyOwned}) of nkBracketExpr: let x = n[0] if x.typ != nil and x.typ.skipTypes(abstractInst).kind == tyTuple: