fixes #11633
This commit is contained in:
parent
766960dc15
commit
cce8a739da
1 changed files with 1 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ proc isAnalysableFieldAccess*(orig: PNode; owner: PSym): bool =
|
||||||
# pointer indirection.
|
# pointer indirection.
|
||||||
n = n[0]
|
n = n[0]
|
||||||
return n.kind == nkSym and n.sym.owner == owner and (isSinkParam(n.sym) or
|
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:
|
of nkBracketExpr:
|
||||||
let x = n[0]
|
let x = n[0]
|
||||||
if x.typ != nil and x.typ.skipTypes(abstractInst).kind == tyTuple:
|
if x.typ != nil and x.typ.skipTypes(abstractInst).kind == tyTuple:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue