This commit is contained in:
Araq 2017-07-17 16:43:00 +02:00
commit f127a7f7aa
2 changed files with 3 additions and 3 deletions

View file

@ -2340,7 +2340,7 @@ proc gen(p: PProc, n: PNode, r: var TCompRes) =
of nkPragma: genPragma(p, n)
of nkProcDef, nkMethodDef, nkConverterDef:
var s = n.sons[namePos].sym
if sfExportc in s.flags and compilingLib:
if {sfExportc, sfCompilerProc} * s.flags == {sfExportc}:
genSym(p, n.sons[namePos], r)
r.res = nil
of nkGotoState, nkState: