tcnstseq works again
This commit is contained in:
parent
27ec76dd3a
commit
4cda0861f5
5 changed files with 11 additions and 3 deletions
|
|
@ -187,6 +187,11 @@ proc semConstExpr(c: PContext, n: PNode): PNode =
|
|||
LocalError(e.info, errConstExprExpected)
|
||||
# error correction:
|
||||
result = e
|
||||
else:
|
||||
# recompute the types as 'eval' isn't guaranteed to construct types nor
|
||||
# that the types are sound:
|
||||
result = semExprWithType(c, result)
|
||||
result = fitNode(c, e.typ, result)
|
||||
|
||||
include hlo, seminst, semcall
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue