From 12fc1dfb2ccb8409fbfe17898e173e8629dbf095 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 7 Jun 2019 13:03:04 +0200 Subject: [PATCH] nimpretty: closes #10159 [bugfix] --- nimpretty/tests/exhaustive.nim | 12 ++++++++++++ nimpretty/tests/expected/exhaustive.nim | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim index b8ef26a0c7..2677c86bfb 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 7847737147..0e27e32a46 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()