clean up tyConst remnants

This commit is contained in:
Jacek Sieka 2016-10-24 23:19:46 +08:00
commit b3de34548d
10 changed files with 32 additions and 37 deletions

View file

@ -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