enforce void for nkWhileStmt [backport: 2.0] (#21170)
enforce void for nkWhileStmt
This commit is contained in:
parent
86a6c90c9e
commit
9323cb7b2a
2 changed files with 11 additions and 1 deletions
|
|
@ -105,7 +105,6 @@ proc semWhile(c: PContext, n: PNode; flags: TExprFlags): PNode =
|
|||
result.typ = n[1].typ
|
||||
elif implicitlyDiscardable(n[1]):
|
||||
result[1].typ = c.enforceVoidContext
|
||||
result.typ = c.enforceVoidContext
|
||||
|
||||
proc semProc(c: PContext, n: PNode): PNode
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue