diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-10-24 19:20:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 19:20:02 +0200 |
commit | 6fd27a8a0849e2c1150b5f15b7b61d43b63642b2 (patch) | |
tree | 442c06665f3320b78a66b847095386aa67c823fe /compiler/renderer.nim | |
parent | 3715a5ac91ede3002a3d94dbab2926d96d5ff257 (diff) | |
parent | f5c3eb6a254e9e9f8c6389cb9f707a6ff878bd5c (diff) | |
download | Nim-6fd27a8a0849e2c1150b5f15b7b61d43b63642b2.tar.gz |
Merge pull request #4945 from arnetheduck/cleanup-tyXxx
Cleanup ty xxx
Diffstat (limited to 'compiler/renderer.nim')
-rw-r--r-- | compiler/renderer.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim index a116a8afe..d06269156 100644 --- a/compiler/renderer.nim +++ b/compiler/renderer.nim @@ -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, - tyConst, 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 |