From cca5e5ffb92d10b56e0d57940bd52c632d6651a4 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 13 Jun 2023 19:23:11 +0800 Subject: 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 --- tests/import/t22065.nim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/import/t22065.nim (limited to 'tests/import') 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 -- cgit 1.4.1-2-gfad0