tcnstseq works again

This commit is contained in:
Araq 2013-11-07 00:25:54 +01:00
commit 4cda0861f5
5 changed files with 11 additions and 3 deletions

View file

@ -421,7 +421,9 @@ proc semConst(c: PContext, n: PNode): PNode =
def = fitRemoveHiddenConv(c, typ, def)
else:
typ = def.typ
if typ == nil: continue
if typ == nil:
LocalError(a.sons[2].info, errConstExprExpected)
continue
if not typeAllowed(typ, skConst):
LocalError(a.info, errXisNoType, typeToString(typ))
continue