merged #11813 manually [bugfix]

(cherry picked from commit 3b8f721460)
This commit is contained in:
Andreas Rumpf
2019-08-08 23:09:10 +02:00
committed by narimiran
parent 1cd8b01206
commit e33ff5cb08

View File

@@ -2438,6 +2438,7 @@ proc semExportExcept(c: PContext, n: PNode): PNode =
strTableAdd(c.module.tab, s)
result.add newSymNode(s, n.info)
s = nextIter(i, exported.tab)
markUsed(c, n.info, exported)
proc semExport(c: PContext, n: PNode): PNode =
result = newNodeI(nkExportStmt, n.info)