diff options
author | Araq <rumpf_a@web.de> | 2018-10-24 00:59:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-24 00:59:57 +0200 |
commit | 3ee53a7c8ed31f41fb0abe0f4f051f5a66559467 (patch) | |
tree | a0d9d6be1c21ff4dd6d6633fb5afcbf0e0566f21 /nimpretty/tests | |
parent | e3a0415650b3b761a2a18907d2f0796c209ba4fa (diff) | |
download | Nim-3ee53a7c8ed31f41fb0abe0f4f051f5a66559467.tar.gz |
nimpretty: fixes #8078
Diffstat (limited to 'nimpretty/tests')
-rw-r--r-- | nimpretty/tests/expected/simple.nim | 8 | ||||
-rw-r--r-- | nimpretty/tests/simple.nim | 8 |
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 |