diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2014-10-20 01:20:39 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2014-10-20 01:20:39 +0200 |
commit | b29c0da7b5f450cff50a7d9830d5bb449042f94f (patch) | |
tree | 6401af8e3f8539103dd22dd3ce36783fedade468 /tests/modules/tselfimport.nim | |
parent | 60a7532bdac51e7be03461d5d402d440794d79a8 (diff) | |
parent | 8b70e2c0e7ccbca799634f8c3c25dbb244a141e8 (diff) | |
download | Nim-b29c0da7b5f450cff50a7d9830d5bb449042f94f.tar.gz |
Merge pull request #1574 from trustable-code/PR3
Do not allow self import
Diffstat (limited to 'tests/modules/tselfimport.nim')
-rw-r--r-- | tests/modules/tselfimport.nim | 8 |
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") + |