clean up tyMutable remnants
This commit is contained in:
parent
b3de34548d
commit
f5c3eb6a25
10 changed files with 37 additions and 44 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue