proc bodies can be expressions with a type

This commit is contained in:
Araq 2012-09-22 22:43:36 +02:00
commit 759b3201ad
12 changed files with 75 additions and 13 deletions

View file

@ -93,7 +93,7 @@ proc instantiateBody(c: PContext, n: PNode, result: PSym) =
var symMap: TIdTable
InitIdTable symMap
freshGenSyms(b, result, symMap)
b = semStmtScope(c, b)
b = semProcBody(c, b)
b = hloBody(c, b)
n.sons[bodyPos] = transformBody(c.module, b, result)
#echo "code instantiated ", result.name.s