mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-14 15:43:45 +00:00
fix state array constant types (#25893)
else there's a mismatch in the AST for the bracket constructor
(cherry picked from commit 13d152a4d1)
This commit is contained in:
@@ -252,7 +252,8 @@ proc newCurExcAccess(ctx: var Ctx): PNode =
|
||||
ctx.newEnvVarAccess(ctx.curExcSym)
|
||||
|
||||
proc newStateLabel(ctx: Ctx): PNode =
|
||||
ctx.g.newIntLit(TLineInfo(), 0)
|
||||
result = nkIntLit.newIntNode(0)
|
||||
result.typ = getSysType(ctx.g, TLineInfo(), tyInt16)
|
||||
|
||||
proc newState(ctx: var Ctx, n: PNode, inlinable: bool, label: PNode): PNode =
|
||||
# Creates a new state, adds it to the context
|
||||
|
||||
Reference in New Issue
Block a user