diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-05-22 11:50:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-22 11:50:05 +0200 |
commit | 1e97b420bb10af94450582cbf6774cacc45c92f4 (patch) | |
tree | 75b10571cf21b7a9f9748ee365e7dd5edb19614d /compiler | |
parent | 57bc8d73b439d974760937c6866d16afc742a25c (diff) | |
download | Nim-1e97b420bb10af94450582cbf6774cacc45c92f4.tar.gz |
fixes #7167 (#11300)
* fixes #7167 * spec: distinct types can be ordinal types * bootstrapping issue
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semexprs.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 767a13f3e..268982147 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -338,8 +338,7 @@ proc semLowHigh(c: PContext, n: PNode, m: TMagic): PNode = of tyArray: n.typ = typ.sons[0] # indextype of tyInt..tyInt64, tyChar, tyBool, tyEnum, tyUInt8, tyUInt16, tyUInt32, tyFloat..tyFloat64: - # do not skip the range! - n.typ = n.sons[1].typ.skipTypes(abstractVar) + n.typ = n.sons[1].typ.skipTypes({tyTypeDesc}) of tyGenericParam: # prepare this for resolving in semtypinst: # we must use copyTree here in order to avoid creating a cycle |