clean up tyConst remnants
This commit is contained in:
parent
f488ed973d
commit
b3de34548d
10 changed files with 32 additions and 37 deletions
|
|
@ -290,7 +290,7 @@ proc litAux(n: PNode, x: BiggestInt, size: int): string =
|
|||
proc skip(t: PType): PType =
|
||||
result = t
|
||||
while result.kind in {tyGenericInst, tyRange, tyVar, tyDistinct, tyOrdinal,
|
||||
tyConst, tyMutable}:
|
||||
tyMutable}:
|
||||
result = lastSon(result)
|
||||
if n.typ != nil and n.typ.skip.kind in {tyBool, tyEnum}:
|
||||
let enumfields = n.typ.skip.n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue