mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
@@ -2086,7 +2086,9 @@ proc parseConstant(p: var TParser): PNode =
|
||||
addSon(result, p.emptyNode)
|
||||
eat(p, tkEquals)
|
||||
optInd(p, result)
|
||||
addSon(result, parseStmtListExpr(p))
|
||||
#addSon(result, parseStmtListExpr(p))
|
||||
addSon(result, parseExpr(p))
|
||||
result[^1] = postExprBlocks(p, result[^1])
|
||||
indAndComment(p, result)
|
||||
|
||||
proc parseBind(p: var TParser, k: TNodeKind): PNode =
|
||||
|
||||
@@ -49,3 +49,8 @@ let
|
||||
aaa = t 2 + 4
|
||||
ccc = t (1, 1) + 6
|
||||
ddd = t [0, 1, 2] + 5
|
||||
|
||||
# bug #10896
|
||||
const
|
||||
test =
|
||||
proc(): int = 1
|
||||
|
||||
Reference in New Issue
Block a user