bugfixes: objects still invalid for constants; fixed a typo concerning 'high' in eval context
This commit is contained in:
parent
5f018a5046
commit
7819b84475
8 changed files with 52 additions and 15 deletions
|
|
@ -77,10 +77,9 @@ proc instantiateBody(c: PContext, n: PNode, result: PSym) =
|
|||
if result.kind in {skProc, skMethod, skConverter}:
|
||||
addResult(c, result.typ.sons[0], n.info)
|
||||
addResultNode(c, n)
|
||||
n.sons[bodyPos] = semStmtScope(c, n.sons[bodyPos])
|
||||
if result.kind == skIterator:
|
||||
# XXX Bad hack for tests/titer2:
|
||||
n.sons[bodyPos] = transform(c.module, n.sons[bodyPos])
|
||||
var b = semStmtScope(c, n.sons[bodyPos])
|
||||
# XXX Bad hack for tests/titer2 and tests/tactiontable
|
||||
n.sons[bodyPos] = transform(c.module, b)
|
||||
#echo "code instantiated ", result.name.s
|
||||
excl(result.flags, sfForward)
|
||||
popProcCon(c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue