From 3197ec8e7289fc0861af05f8ecc357b54099f702 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 7 Apr 2014 15:46:02 +0200 Subject: [PATCH] make tests green again --- compiler/semtypes.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index e8dcea7315..a563cf06c8 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)