diff options
author | Araq <rumpf_a@web.de> | 2012-09-22 22:43:36 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-22 22:43:36 +0200 |
commit | 759b3201ad7f60ee865f9c0cec57d6ce63c74b73 (patch) | |
tree | 234e76619824ce081d9b1eaf469242d36de1936e /compiler/seminst.nim | |
parent | 3ef146b0eacb8781dd0e352925001de342d6cc9d (diff) | |
download | Nim-759b3201ad7f60ee865f9c0cec57d6ce63c74b73.tar.gz |
proc bodies can be expressions with a type
Diffstat (limited to 'compiler/seminst.nim')
-rwxr-xr-x | compiler/seminst.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/seminst.nim b/compiler/seminst.nim index 135f9bba9..ba950422f 100755 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -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 |