summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2019-03-18 10:09:49 +0000
committerAndreas Rumpf <rumpf_a@web.de>2019-03-18 11:09:49 +0100
commit862897dc0f122e374c0e4d44770ffcd8825e51e3 (patch)
treec92794e887760bc44be045a46a3182f093a027e5 /tests/parser
parentc19cd14fc96cfdc77c98e90adeb4e1eb8b5d9b26 (diff)
downloadNim-862897dc0f122e374c0e4d44770ffcd8825e51e3.tar.gz
Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)
* Support for stmtListExpr in parser after major keywords
* fixes #4035
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/tstmtlist_expr.nim20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/parser/tstmtlist_expr.nim b/tests/parser/tstmtlist_expr.nim
new file mode 100644
index 000000000..8b4bb8505
--- /dev/null
+++ b/tests/parser/tstmtlist_expr.nim
@@ -0,0 +1,20 @@
+discard """
+  output: '''10'''
+"""
+
+proc xx(a: int): int =
+  let y = 0
+  return
+    var x = 0
+    x + y
+
+proc b(x: int): int = 
+  raise 
+    var e: ref Exception
+    new(e)
+    e.msg = "My Exception msg"
+    e
+
+##issue 4035
+echo(5 +
+5)
\ No newline at end of file