From 0ba7da62ddf431800221edd3611d1673724cd8d2 Mon Sep 17 00:00:00 2001 From: Simon Hafner Date: Sat, 26 Jan 2013 16:44:49 -0600 Subject: [PATCH] no symbol shall be generated for imported procs --- compiler/ecmasgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ecmasgen.nim b/compiler/ecmasgen.nim index 8899c904eb..7737296819 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