From 8b70e2c0e7ccbca799634f8c3c25dbb244a141e8 Mon Sep 17 00:00:00 2001 From: Simon Krauter Date: Wed, 15 Oct 2014 00:31:55 +0200 Subject: Added test case --- tests/modules/tselfimport.nim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/modules/tselfimport.nim (limited to 'tests/modules') 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") + -- cgit 1.4.1-2-gfad0