summary refs log tree commit diff stats
path: root/tests/import
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-06-13 19:23:11 +0800
committerGitHub <noreply@github.com>2023-06-13 13:23:11 +0200
commitcca5e5ffb92d10b56e0d57940bd52c632d6651a4 (patch)
treed46bbf795f07b2df67d31653c2d6b93b7b2d83ca /tests/import
parentfda8b6f193e2e229488f76f18089f01eb08272fb (diff)
downloadNim-cca5e5ffb92d10b56e0d57940bd52c632d6651a4.tar.gz
fixes #22065; do not search path for relative imports (#22073)
* fixes #22065; do not search path for "./"

* simplify

* fixes

* fixes

* allow ".."

* cleanup

* add a test case

* slightly modify the import

* adds a changelog
Diffstat (limited to 'tests/import')
-rw-r--r--tests/import/t22065.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/import/t22065.nim b/tests/import/t22065.nim
new file mode 100644
index 000000000..dfd87a107
--- /dev/null
+++ b/tests/import/t22065.nim
@@ -0,0 +1,5 @@
+discard """
+  errormsg: "cannot open file: ./sugar"
+"""
+
+import ./sugar
\ No newline at end of file