summary refs log tree commit diff stats
path: root/compiler/semfold.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/semfold.nim')
-rw-r--r--compiler/semfold.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index d0473b5ce..d2bbc63be 100644
--- a/compiler/semfold.nim
+++ b/compiler/semfold.nim
@@ -17,6 +17,9 @@ import
 
 from system/memory import nimCStrLen
 
+when defined(nimPreviewSlimSystem):
+  import std/assertions
+
 proc errorType*(g: ModuleGraph): PType =
   ## creates a type representing an error state
   result = newType(tyError, nextTypeId(g.idgen), g.owners[^1])