summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-04-07 15:46:02 +0200
committerAraq <rumpf_a@web.de>2014-04-07 15:46:02 +0200
commit3197ec8e7289fc0861af05f8ecc357b54099f702 (patch)
tree633906eca48118ae03916b9b340743f0b477b900
parentabb701082065334fd171aaa05c530b611c5aef50 (diff)
downloadNim-3197ec8e7289fc0861af05f8ecc357b54099f702.tar.gz
make tests green again
-rw-r--r--compiler/semtypes.nim2
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)