summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2013-01-26 16:44:49 -0600
committerSimon Hafner <hafnersimon@gmail.com>2013-01-26 16:44:49 -0600
commit0ba7da62ddf431800221edd3611d1673724cd8d2 (patch)
tree6160437b9eac6ffa098eb248d7d4913c222da8b9
parent167b486a8cdcbb4f57183d8ec1062d1ee8f4c811 (diff)
downloadNim-0ba7da62ddf431800221edd3611d1673724cd8d2.tar.gz
no symbol shall be generated for imported procs
-rwxr-xr-xcompiler/ecmasgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ecmasgen.nim b/compiler/ecmasgen.nim
index 8899c904e..773729681 100755
--- a/compiler/ecmasgen.nim
+++ b/compiler/ecmasgen.nim
@@ -940,7 +940,7 @@ proc genSym(p: var TProc, n: PNode, r: var TCompRes) =
   of skProc, skConverter, skMethod:
     discard mangleName(s)
     r.res = s.loc.r
-    if lfNoDecl in s.loc.flags or s.magic != mNone or isGenericRoutine(s): nil
+    if lfNoDecl in s.loc.flags or s.magic != mNone or isGenericRoutine(s) or {sfImportc, sfInfixCall} * s.flags != {}: nil
     elif s.kind == skMethod and s.getBody.kind == nkEmpty:
       # we cannot produce code for the dispatcher yet:
       nil