Make explicit {.nimcall.} a seperate calling convention
This commit is contained in:
parent
ef6358f0b0
commit
38068f9778
12 changed files with 29 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue