basic continue after error works; interactive mode more useful
This commit is contained in:
parent
5b28d08203
commit
627e192f64
12 changed files with 58 additions and 40 deletions
|
|
@ -276,6 +276,8 @@ proc semVar(c: PContext, n: PNode): PNode =
|
|||
else: typ = def.typ
|
||||
else:
|
||||
def = ast.emptyNode
|
||||
# this can only happen for errornous var statements:
|
||||
if typ == nil: continue
|
||||
if not typeAllowed(typ, skVar):
|
||||
GlobalError(a.info, errXisNoType, typeToString(typ))
|
||||
var tup = skipTypes(typ, {tyGenericInst})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue