tySequence has a tfHasAsgn flag consistently
This commit is contained in:
parent
4d85616e0b
commit
a28090a8f2
1 changed files with 4 additions and 1 deletions
|
|
@ -1504,7 +1504,10 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
|
||||||
of mRange: result = semRange(c, n, prev)
|
of mRange: result = semRange(c, n, prev)
|
||||||
of mSet: result = semSet(c, n, prev)
|
of mSet: result = semSet(c, n, prev)
|
||||||
of mOrdinal: result = semOrdinal(c, n, prev)
|
of mOrdinal: result = semOrdinal(c, n, prev)
|
||||||
of mSeq: result = semContainer(c, n, tySequence, "seq", prev)
|
of mSeq:
|
||||||
|
result = semContainer(c, n, tySequence, "seq", prev)
|
||||||
|
if c.config.selectedGc == gcDestructors:
|
||||||
|
incl result.flags, tfHasAsgn
|
||||||
of mOpt: result = semContainer(c, n, tyOpt, "opt", prev)
|
of mOpt: result = semContainer(c, n, tyOpt, "opt", prev)
|
||||||
of mVarargs: result = semVarargs(c, n, prev)
|
of mVarargs: result = semVarargs(c, n, prev)
|
||||||
of mTypeDesc, mTypeTy:
|
of mTypeDesc, mTypeTy:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue