diff options
author | Araq <rumpf_a@web.de> | 2014-04-07 15:46:02 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-04-07 15:46:02 +0200 |
commit | 3197ec8e7289fc0861af05f8ecc357b54099f702 (patch) | |
tree | 633906eca48118ae03916b9b340743f0b477b900 | |
parent | abb701082065334fd171aaa05c530b611c5aef50 (diff) | |
download | Nim-3197ec8e7289fc0861af05f8ecc357b54099f702.tar.gz |
make tests green again
-rw-r--r-- | compiler/semtypes.nim | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index e8dcea731..a563cf06c 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -234,8 +234,6 @@ proc semArray(c: PContext, n: PNode, prev: PType): PType = x.typ.skipTypes({tyTypeDesc})) else: indx = x.typ.skipTypes({tyTypeDesc}) - if not isOrdinalType(indx): - localError(n[1].info, errOrdinalTypeExpected) #localError(n[1].info, errConstExprExpected) addSonSkipIntLit(result, indx) if indx.kind == tyGenericInst: indx = lastSon(indx) |