cleanup PR #14048
This commit is contained in:
parent
1b6c4ed2ba
commit
dd24004fab
2 changed files with 5 additions and 5 deletions
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
- getImpl() on enum type symbols now returns field syms instead of idents. This helps
|
||||
with writing typed macros. Old behavior for backwards compatiblity can be restored
|
||||
with command line switch `--oldast`.
|
||||
with command line switch `--useVersion:1.0`.
|
||||
|
||||
## Compiler changes
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue