tcnstseq works again

This commit is contained in:
Araq 2013-11-07 00:25:54 +01:00
commit 4cda0861f5
5 changed files with 11 additions and 3 deletions

View file

@ -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