This commit is contained in:
Andy Davidoff 2020-04-21 23:23:15 -04:00 • committed by GitHub
commit 9604a5a97a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,7 @@ proc semEnum(c: PContext, n: PNode, prev: PType): PType =
e.typ = result e.typ = result
e.position = int(counter) e.position = int(counter)
let symNode = newSymNode(e) let symNode = newSymNode(e)
if optNimV1Emulation notin c.config.options and identToReplace != nil: if optNimV1Emulation notin c.config.globalOptions and identToReplace != nil:
identToReplace[] = symNode identToReplace[] = symNode
if e.position == 0: hasNull = true if e.position == 0: hasNull = true
if result.sym != nil and sfExported in result.sym.flags: if result.sym != nil and sfExported in result.sym.flags: