Singing and dancing with skipTypes.
This commit is contained in:
parent
f47081b300
commit
f14ca63417
1 changed files with 1 additions and 1 deletions
|
|
@ -979,7 +979,7 @@ proc genAddr(p: PProc, n: PNode, r: var TCompRes) =
|
||||||
if ty.kind in MappedToObject:
|
if ty.kind in MappedToObject:
|
||||||
gen(p, n.sons[0], r)
|
gen(p, n.sons[0], r)
|
||||||
else:
|
else:
|
||||||
let kindOfIndexedExpr = n.sons[0].sons[0].typ.kind
|
let kindOfIndexedExpr = skipTypes(n.sons[0].sons[0].typ, abstractVarRange).kind
|
||||||
case kindOfIndexedExpr
|
case kindOfIndexedExpr
|
||||||
of tyArray, tyArrayConstr, tyOpenArray, tySequence, tyString, tyCString,
|
of tyArray, tyArrayConstr, tyOpenArray, tySequence, tyString, tyCString,
|
||||||
tyVarargs:
|
tyVarargs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue