views: yet another bugfix (#15447)
* views: yet another bugfix * views: extended the spec * views: take into account potential hidden mutations via proc calls
This commit is contained in:
parent
79a92da8ef
commit
ab405c936e
5 changed files with 44 additions and 10 deletions
|
|
@ -707,11 +707,6 @@ proc semPatternBody(c: var TemplCtx, n: PNode): PNode =
|
|||
localError(c.c.config, n.info, "invalid expression")
|
||||
result = n
|
||||
|
||||
proc stupidStmtListExpr(n: PNode): bool =
|
||||
for i in 0..<n.len-1:
|
||||
if n[i].kind notin {nkEmpty, nkCommentStmt}: return false
|
||||
result = true
|
||||
|
||||
result = n
|
||||
case n.kind
|
||||
of nkIdent:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue