import foo {.all.} reboot (#17706)

This commit is contained in:
Timothee Cour 2021-04-16 00:16:39 -07:00 • committed by GitHub
commit 8161b02897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 584 additions and 76 deletions

View file

@ -138,9 +138,10 @@ proc semEnum(c: PContext, n: PNode, prev: PType): PType =
identToReplace[] = symNode
if e.position == 0: hasNull = true
if result.sym != nil and sfExported in result.sym.flags:
incl(e.flags, sfUsed)
incl(e.flags, sfExported)
if not isPure: exportSym(c, e)
incl(e.flags, {sfUsed, sfExported})
if result.sym != nil and not isPure:
addInterfaceDeclAux(c, e, forceExport = sfExported in result.sym.flags)
result.n.add symNode
styleCheckDef(c.config, e)
onDef(e.info, e)