Make explicit {.nimcall.} a seperate calling convention

This commit is contained in:
Clyybber 2020-08-08 12:36:20 +02:00
commit 38068f9778
12 changed files with 29 additions and 17 deletions

View file

@ -539,7 +539,7 @@ proc transformConv(c: PTransf, n: PNode): PNode =
# happens sometimes for generated assignments, etc.
of tyProc:
result = transformSons(c, n)
if dest.callConv == ccClosure and source.callConv == ccDefault:
if dest.callConv == ccClosure and source.callConv in ccDefault:
result = generateThunk(c, result[1], dest)
else:
result = transformSons(c, n)