proc bodies can be expressions with a type
This commit is contained in:
parent
3ef146b0ea
commit
759b3201ad
12 changed files with 75 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue