summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-08-08 12:36:20 +0200
committerClyybber <darkmine956@gmail.com>2020-08-08 12:36:20 +0200
commit38068f977843c5070667f40c199f037f9a838d7c (patch)
treeee241fe721647b24f15640165ac6880ec162a580 /compiler/transf.nim
parentef6358f0b0be71266d9fa7ae19a3b6f193b305cf (diff)
downloadNim-38068f977843c5070667f40c199f037f9a838d7c.tar.gz
Make explicit {.nimcall.} a seperate calling convention
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r--compiler/transf.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index 29344e7a1..6d497c546 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -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)