summary refs log tree commit diff stats
path: root/nimpretty/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-24 00:59:57 +0200
committerAraq <rumpf_a@web.de>2018-10-24 00:59:57 +0200
commit3ee53a7c8ed31f41fb0abe0f4f051f5a66559467 (patch)
treea0d9d6be1c21ff4dd6d6633fb5afcbf0e0566f21 /nimpretty/tests
parente3a0415650b3b761a2a18907d2f0796c209ba4fa (diff)
downloadNim-3ee53a7c8ed31f41fb0abe0f4f051f5a66559467.tar.gz
nimpretty: fixes #8078
Diffstat (limited to 'nimpretty/tests')
-rw-r--r--nimpretty/tests/expected/simple.nim8
-rw-r--r--nimpretty/tests/simple.nim8
2 files changed, 16 insertions, 0 deletions
diff --git a/nimpretty/tests/expected/simple.nim b/nimpretty/tests/expected/simple.nim
index 9e3c52f9b..5126658ea 100644
--- a/nimpretty/tests/expected/simple.nim
+++ b/nimpretty/tests/expected/simple.nim
@@ -3,3 +3,11 @@ var x: int = 2
 
 echo x
 # bug #9144
+
+proc a() =
+  while true:
+    discard
+    # comment 1
+
+  # comment 2
+  discard
diff --git a/nimpretty/tests/simple.nim b/nimpretty/tests/simple.nim
index 9e3c52f9b..5126658ea 100644
--- a/nimpretty/tests/simple.nim
+++ b/nimpretty/tests/simple.nim
@@ -3,3 +3,11 @@ var x: int = 2
 
 echo x
 # bug #9144
+
+proc a() =
+  while true:
+    discard
+    # comment 1
+
+  # comment 2
+  discard