bugfix: type converter that converts to bool in 'if' context
This commit is contained in:
parent
220dd54acf
commit
032599c156
11 changed files with 77 additions and 25 deletions
|
|
@ -361,6 +361,7 @@ proc evalAsgn(c: PEvalContext, n: PNode): PNode =
|
|||
var x = result
|
||||
result = evalAux(c, n.sons[1], {})
|
||||
if isSpecial(result): return
|
||||
when defined(system.reset): reset(x)
|
||||
x.kind = result.kind
|
||||
x.typ = result.typ
|
||||
case x.kind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue