Added test case
This commit is contained in:
parent
27585ee6ec
commit
8b70e2c0e7
1 changed files with 8 additions and 0 deletions
8
tests/modules/tselfimport.nim
Normal file
8
tests/modules/tselfimport.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
discard """
|
||||||
|
file: "tselfimport.nim"
|
||||||
|
line: 6
|
||||||
|
errormsg: "A module cannot import itself"
|
||||||
|
"""
|
||||||
|
import tselfimport #ERROR
|
||||||
|
echo("Hello World")
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue