tcnstseq works again
This commit is contained in:
parent
27ec76dd3a
commit
4cda0861f5
5 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue