more tests work

This commit is contained in:
Araq 2016-12-02 11:44:28 +01:00
commit 42ae2064dd
5 changed files with 13 additions and 3 deletions

View file

@ -557,7 +557,10 @@ proc typeBorrow(sym: PSym, n: PNode) =
incl(sym.typ.flags, tfBorrowDot)
proc markCompilerProc(s: PSym) =
makeExternExport(s, "$1", s.info)
# minor hack ahead: FlowVar is the only generic .compilerProc type which
# should not have an external name set:
if s.kind != skType or s.name.s != "FlowVar":
makeExternExport(s, "$1", s.info)
incl(s.flags, sfCompilerProc)
incl(s.flags, sfUsed)
registerCompilerProc(s)