clean up tyMutable remnants

This commit is contained in:
Jacek Sieka 2016-10-24 23:30:10 +08:00
commit f5c3eb6a25
10 changed files with 37 additions and 44 deletions

View file

@ -289,8 +289,7 @@ proc lsub(n: PNode): int
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,
tyMutable}:
while result.kind in {tyGenericInst, tyRange, tyVar, tyDistinct, tyOrdinal}:
result = lastSon(result)
if n.typ != nil and n.typ.skip.kind in {tyBool, tyEnum}:
let enumfields = n.typ.skip.n