summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/semstmts.nim')
-rwxr-xr-xcompiler/semstmts.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index bc7f00c87..c67ccae46 100755
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -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)