make tests green again

This commit is contained in:
Araq 2014-04-07 15:46:02 +02:00
commit 3197ec8e72

View file

@ -234,8 +234,6 @@ proc semArray(c: PContext, n: PNode, prev: PType): PType =
x.typ.skipTypes({tyTypeDesc})) x.typ.skipTypes({tyTypeDesc}))
else: else:
indx = x.typ.skipTypes({tyTypeDesc}) indx = x.typ.skipTypes({tyTypeDesc})
if not isOrdinalType(indx):
localError(n[1].info, errOrdinalTypeExpected)
#localError(n[1].info, errConstExprExpected) #localError(n[1].info, errConstExprExpected)
addSonSkipIntLit(result, indx) addSonSkipIntLit(result, indx)
if indx.kind == tyGenericInst: indx = lastSon(indx) if indx.kind == tyGenericInst: indx = lastSon(indx)