summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-24 08:28:05 +0200
committerAraq <rumpf_a@web.de>2012-07-24 08:28:05 +0200
commit033dc50c691f37808e021856bcd0d385cf427ec2 (patch)
treedc613a0c36e31baf04a24193469db9fcce2d1641 /compiler
parent09a4c2f0ad0f59cfb9ca7be793990e3b755e6c6f (diff)
downloadNim-033dc50c691f37808e021856bcd0d385cf427ec2.tar.gz
closure is now default calling convention for proc types
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/semtypes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 3aafd2492..701ccc691 100755
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -817,7 +817,7 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
     s.typ = result
     if n.sons[1].kind == nkEmpty or n.sons[1].len == 0:
       if result.callConv == ccDefault:
-        #result.callConv = ccClosure
+        result.callConv = ccClosure
         Message(n.info, warnImplicitClosure, renderTree(n))
     else:
       pragma(c, s, n.sons[1], procTypePragmas)