bugfix: ha.echo should be accepted
This commit is contained in:
parent
e0746e7b19
commit
bb82e30508
2 changed files with 9 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue