diff options
author | Araq <rumpf_a@web.de> | 2020-04-21 23:27:19 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-04-21 23:27:19 +0200 |
commit | dd24004fabaf315463b89d38ac553b20080fd1cd (patch) | |
tree | 4292b7c918866de762560b72becf300e083baa22 /compiler | |
parent | 1b6c4ed2ba29f855b47ff295515b54c9ae4edafa (diff) | |
download | Nim-dd24004fabaf315463b89d38ac553b20080fd1cd.tar.gz |
cleanup PR #14048
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypes.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 7ede8e792..96fd6be05 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 optOldAst notin c.config.options and identToReplace != nil: + if optNimV1Emulation notin c.config.options and identToReplace != nil: identToReplace[] = symNode if e.position == 0: hasNull = true if result.sym != nil and sfExported in result.sym.flags: @@ -1590,7 +1590,7 @@ proc applyTypeSectionPragmas(c: PContext; pragmas, operand: PNode): PNode = discard "User-defined pragma" else: let sym = searchInScopes(c, ident) - if sym != nil and sfCustomPragma in sym.flags: + if sym != nil and sfCustomPragma in sym.flags: discard "Custom user pragma" else: # we transform ``(arg1, arg2: T) {.m, rest.}`` into ``m((arg1, arg2: T) {.rest.})`` and |