bugfix: import of pure enums
This commit is contained in:
parent
c934db86ad
commit
b83dce7281
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ proc rawImportSymbol(c: PContext, s: PSym) =
|
||||||
StrTableAdd(c.tab.stack[importTablePos], copy)
|
StrTableAdd(c.tab.stack[importTablePos], copy)
|
||||||
if s.kind == skType:
|
if s.kind == skType:
|
||||||
var etyp = s.typ
|
var etyp = s.typ
|
||||||
if etyp.kind in {tyBool, tyEnum}:
|
if etyp.kind in {tyBool, tyEnum} and sfPure notin s.flags:
|
||||||
for j in countup(0, sonsLen(etyp.n) - 1):
|
for j in countup(0, sonsLen(etyp.n) - 1):
|
||||||
var e = etyp.n.sons[j].sym
|
var e = etyp.n.sons[j].sym
|
||||||
if (e.Kind != skEnumField):
|
if (e.Kind != skEnumField):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue