parent
8dcf367e52
commit
5ebd1248df
12 changed files with 27 additions and 41 deletions
|
|
@ -143,10 +143,7 @@ proc semEnum(c: PContext, n: PNode, prev: PType): PType =
|
|||
onDef(e.info, e)
|
||||
if sfGenSym notin e.flags:
|
||||
if not isPure:
|
||||
if overloadableEnums in c.features:
|
||||
addInterfaceOverloadableSymAt(c, c.currentScope, e)
|
||||
else:
|
||||
addInterfaceDecl(c, e)
|
||||
addInterfaceOverloadableSymAt(c, c.currentScope, e)
|
||||
else:
|
||||
declarePureEnumField(c, e)
|
||||
if isPure and (let conflict = strTableInclReportConflict(symbols, e); conflict != nil):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue