closure is now default calling convention for proc types
This commit is contained in:
parent
09a4c2f0ad
commit
033dc50c69
2 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue