From 114da04cbbaa7930a38ba8ca59229447aee7b40f Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 27 Aug 2019 19:18:56 +0200 Subject: fixes #12029; finish the 'unused import' feature (#12064) --- tests/tools/dontmentionme.nim | 3 +++ tests/tools/tunused_imports.nim | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/tools/dontmentionme.nim (limited to 'tests/tools') diff --git a/tests/tools/dontmentionme.nim b/tests/tools/dontmentionme.nim new file mode 100644 index 000000000..218823aca --- /dev/null +++ b/tests/tools/dontmentionme.nim @@ -0,0 +1,3 @@ +{.used.} + +proc nothing* = echo "nothing to see here" diff --git a/tests/tools/tunused_imports.nim b/tests/tools/tunused_imports.nim index c9cfcfe90..1c5732c83 100644 --- a/tests/tools/tunused_imports.nim +++ b/tests/tools/tunused_imports.nim @@ -10,7 +10,7 @@ tunused_imports.nim(25, 8) Warning: imported and not used: 'strutils' [UnusedImp {.warning: "BEGIN".} -import net +import net, dontmentionme echo AF_UNIX -- cgit 1.4.1-2-gfad0