summary refs log tree commit diff stats
path: root/tests/caas/issue_452.nim
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-06-07 22:06:04 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-06-07 22:06:04 +0200
commitb0e71709657d9c2d8b00b762a710b230a2cc8149 (patch)
treeee322c24af7701f41abbac2d1567506e3ec9825e /tests/caas/issue_452.nim
parent27ebd3ce2e411458d2f06b633285b1ba0a9b096d (diff)
downloadNim-b0e71709657d9c2d8b00b762a710b230a2cc8149.tar.gz
Adds idetools testcase. Refs #416.
Diffstat (limited to 'tests/caas/issue_452.nim')
-rw-r--r--tests/caas/issue_452.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/caas/issue_452.nim b/tests/caas/issue_452.nim
new file mode 100644
index 000000000..46cff6241
--- /dev/null
+++ b/tests/caas/issue_452.nim
@@ -0,0 +1,8 @@
+const
+  VERSION_STR1* = "0.5.0" ## Idetools shifts this one column.
+  VERSION_STR2 = "0.5.0" ## This one is ok.
+  VERSION_STR3* = "0.5.0" ## Bad.
+  VERSION_STR4 = "0.5.0" ## Ok.
+
+proc forward1*(): string = result = ""
+proc forward2(): string = result = ""