summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-06-07 13:03:04 +0200
committerAraq <rumpf_a@web.de>2019-06-07 13:03:04 +0200
commit12fc1dfb2ccb8409fbfe17898e173e8629dbf095 (patch)
treec942ad65140113f6db15af7f6e7b902cdac3075c
parent667af87e66ed1ad4f3dbe455df72257d21fbc426 (diff)
downloadNim-12fc1dfb2ccb8409fbfe17898e173e8629dbf095.tar.gz
nimpretty: closes #10159 [bugfix]
-rw-r--r--nimpretty/tests/exhaustive.nim12
-rw-r--r--nimpretty/tests/expected/exhaustive.nim12
2 files changed, 24 insertions, 0 deletions
diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim
index b8ef26a0c..2677c86bf 100644
--- a/nimpretty/tests/exhaustive.nim
+++ b/nimpretty/tests/exhaustive.nim
@@ -384,3 +384,15 @@ proc foo  *  () =
 
 proc foo* [T]() =
   discard
+
+
+# bug #10159
+
+proc fun() =
+  discard
+
+proc main() =
+    echo "foo"; echo "bar";
+    discard
+
+main()
diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim
index 784773714..0e27e32a4 100644
--- a/nimpretty/tests/expected/exhaustive.nim
+++ b/nimpretty/tests/expected/exhaustive.nim
@@ -394,3 +394,15 @@ proc foo*() =
 
 proc foo*[T]() =
   discard
+
+
+# bug #10159
+
+proc fun() =
+  discard
+
+proc main() =
+  echo "foo"; echo "bar";
+  discard
+
+main()