diff options
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..ba5d9b4cf --- /dev/null +++ b/tests/modules/tselfimport.nim @@ -0,0 +1,8 @@ +discard """ + errormsg: "module 'tselfimport' cannot import itself" + file: "tselfimport.nim" + line: 7 +""" +import strutils as su # guard against regression +import tselfimport #ERROR +echo("Hello World") |