Use typeflag instead
This commit is contained in:
parent
26a867c83c
commit
b022576ce9
11 changed files with 29 additions and 18 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 in ccDefault:
|
||||
if dest.callConv == ccClosure and source.callConv == ccNimCall:
|
||||
result = generateThunk(c, result[1], dest)
|
||||
else:
|
||||
result = transformSons(c, n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue