From 759b3201ad7f60ee865f9c0cec57d6ce63c74b73 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 22 Sep 2012 22:43:36 +0200 Subject: proc bodies can be expressions with a type --- compiler/seminst.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/seminst.nim') 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 -- cgit 1.4.1-2-gfad0