summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authorSimon Krauter <krauter.simon@arcor.de>2014-10-15 00:31:55 +0200
committerSimon Krauter <krauter.simon@arcor.de>2014-10-15 00:31:55 +0200
commit8b70e2c0e7ccbca799634f8c3c25dbb244a141e8 (patch)
treed521f9ce7f9ef49ef4c7922f8117f1b2950f52bd /tests/modules
parent27585ee6ecd0dd2f7673b800e921ec2b3850e608 (diff)
downloadNim-8b70e2c0e7ccbca799634f8c3c25dbb244a141e8.tar.gz
Added test case
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/tselfimport.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/modules/tselfimport.nim b/tests/modules/tselfimport.nim
new file mode 100644
index 000000000..f20a40407
--- /dev/null
+++ b/tests/modules/tselfimport.nim
@@ -0,0 +1,8 @@
+discard """
+  file: "tselfimport.nim"
+  line: 6
+  errormsg: "A module cannot import itself"
+"""
+import tselfimport #ERROR
+echo("Hello World")
+