diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-08-27 19:18:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 19:18:56 +0200 |
commit | 114da04cbbaa7930a38ba8ca59229447aee7b40f (patch) | |
tree | 9e832fb5740bfc334b97d5eaef357965c481c28f /tests/tools | |
parent | d8177a398059334a7d36c1ba0d98b39516815edd (diff) | |
download | Nim-114da04cbbaa7930a38ba8ca59229447aee7b40f.tar.gz |
fixes #12029; finish the 'unused import' feature (#12064)
Diffstat (limited to 'tests/tools')
-rw-r--r-- | tests/tools/dontmentionme.nim | 3 | ||||
-rw-r--r-- | tests/tools/tunused_imports.nim | 2 |
2 files changed, 4 insertions, 1 deletions
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 |