merged #11813 manually [bugfix]

This commit is contained in:
Andreas Rumpf
2019-08-08 23:09:10 +02:00
parent 082c440f13
commit 3b8f721460

View File

@@ -2470,8 +2470,8 @@ proc semExportExcept(c: PContext, n: PNode): PNode =
s.name.id notin exceptSet and sfError notin s.flags:
strTableAdd(c.module.tab, s)
result.add newSymNode(s, n.info)
markUsed(c, n.info, s)
s = nextIter(i, exported.tab)
markUsed(c, n.info, exported)
proc semExport(c: PContext, n: PNode): PNode =
result = newNodeI(nkExportStmt, n.info)