next steps for tyVarargs/tyOpenArray split
This commit is contained in:
parent
5e570bae47
commit
51de278bd4
13 changed files with 44 additions and 31 deletions
|
|
@ -692,7 +692,8 @@ proc evalHigh(c: PEvalContext, n: PNode): PNode =
|
|||
result = evalAux(c, n.sons[1], {})
|
||||
if isSpecial(result): return
|
||||
case skipTypes(n.sons[1].typ, abstractVar).kind
|
||||
of tyOpenArray, tySequence: result = newIntNodeT(sonsLen(result)-1, n)
|
||||
of tyOpenArray, tySequence, tyVarargs:
|
||||
result = newIntNodeT(sonsLen(result)-1, n)
|
||||
of tyString: result = newIntNodeT(len(result.strVal) - 1, n)
|
||||
else: InternalError(n.info, "evalHigh")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue