bugfix: ha.echo should be accepted

This commit is contained in:
Araq 2012-07-08 22:03:06 +02:00
commit bb82e30508
2 changed files with 9 additions and 6 deletions

View file

@ -1188,8 +1188,9 @@ proc SemStmt(c: PContext, n: PNode): PNode =
if gCmd == cmdInteractive:
result = buildEchoStmt(c, semExpr(c, n))
else:
LocalError(n.info, errStmtExpected)
result = ast.emptyNode
result = semExprNoType(c, n)
#LocalError(n.info, errStmtExpected)
#result = ast.emptyNode
if result == nil: InternalError(n.info, "SemStmt: result = nil")
incl(result.flags, nfSem)