summary refs log tree commit diff stats
path: root/nimpretty/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-10-16 17:21:41 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-16 17:21:41 +0200
commit778e4d1775be16732cff396c9db4701d96d4e753 (patch)
tree3eceed8417a1f938b84e37c7bbee7489e12ee4c5 /nimpretty/tests
parentf3c0703b7d563a86757fd92d0707be4309787f53 (diff)
downloadNim-778e4d1775be16732cff396c9db4701d96d4e753.tar.gz
nimpretty: fixes #9144
Diffstat (limited to 'nimpretty/tests')
-rw-r--r--nimpretty/tests/expected/simple.nim4
-rw-r--r--nimpretty/tests/simple.nim5
2 files changed, 9 insertions, 0 deletions
diff --git a/nimpretty/tests/expected/simple.nim b/nimpretty/tests/expected/simple.nim
new file mode 100644
index 000000000..75f570bac
--- /dev/null
+++ b/nimpretty/tests/expected/simple.nim
@@ -0,0 +1,4 @@
+
+var x: int = 2
+
+echo x                        # bug #9144
diff --git a/nimpretty/tests/simple.nim b/nimpretty/tests/simple.nim
new file mode 100644
index 000000000..9e3c52f9b
--- /dev/null
+++ b/nimpretty/tests/simple.nim
@@ -0,0 +1,5 @@
+
+var x: int = 2
+
+echo x
+# bug #9144