summary refs log tree commit diff stats
path: root/tests/effects
diff options
context:
space:
mode:
authoree7 <45465154+ee7@users.noreply.github.com>2021-02-01 13:14:23 +0100
committerGitHub <noreply@github.com>2021-02-01 13:14:23 +0100
commit0b01eddace6a5a83e3f8e21fc6aafe7e608afa96 (patch)
treebb382b5f187b96e8bf02561480245a2e87322e7b /tests/effects
parent74f8a8e38aeefa82a6e7f91a16a655eb94f02a68 (diff)
downloadNim-0b01eddace6a5a83e3f8e21fc6aafe7e608afa96.tar.gz
critbits: fix error from strictFuncs (#16877)
Previously, compiling a file containing just `import critbits` with
`nim c --experimental:strictFuncs` would produce the following error:
    critbits.nim(529, 6) Error: 'toCritBitTree' can have side effects

This was introduced by 2aed4186989e (#16564).

Fixes: #16873
Diffstat (limited to 'tests/effects')
-rw-r--r--tests/effects/tstrict_funcs.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/effects/tstrict_funcs.nim b/tests/effects/tstrict_funcs.nim
index d30326123..30a62a711 100644
--- a/tests/effects/tstrict_funcs.nim
+++ b/tests/effects/tstrict_funcs.nim
@@ -7,6 +7,7 @@ import tables, streams, parsecsv
 # They are otherwise unused in this file.
 import
   complex,
+  critbits,
   httpcore,
   math,
   nre,