From 9604a5a97af45fa601d8d38827eb1462642e2c16 Mon Sep 17 00:00:00 2001 From: Andy Davidoff Date: Tue, 21 Apr 2020 23:23:15 -0400 Subject: [PATCH] fix typo (#14063) --- compiler/semtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 96fd6be05a..ec53e14a4f 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -131,7 +131,7 @@ proc semEnum(c: PContext, n: PNode, prev: PType): PType = e.typ = result e.position = int(counter) let symNode = newSymNode(e) - if optNimV1Emulation notin c.config.options and identToReplace != nil: + if optNimV1Emulation notin c.config.globalOptions and identToReplace != nil: identToReplace[] = symNode if e.position == 0: hasNull = true if result.sym != nil and sfExported in result.sym.flags: