summary refs log tree commit diff stats
path: root/nimsuggest/sexp.nim
diff options
context:
space:
mode:
Diffstat (limited to 'nimsuggest/sexp.nim')
-rw-r--r--nimsuggest/sexp.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/nimsuggest/sexp.nim b/nimsuggest/sexp.nim
index 467f922cc..03369ccb7 100644
--- a/nimsuggest/sexp.nim
+++ b/nimsuggest/sexp.nim
@@ -14,6 +14,9 @@ import
 
 import std/private/decode_helpers
 
+when defined(nimPreviewSlimSystem):
+  import std/[assertions, formatfloat]
+
 type
   SexpEventKind* = enum  ## enumeration of all events that may occur when parsing
     sexpError,           ## an error occurred during parsing
@@ -401,7 +404,7 @@ macro convertSexp*(x: untyped): untyped =
   ## `%` for every element.
   result = toSexp(x)
 
-proc `==`* (a, b: SexpNode): bool {.noSideEffect.} =
+func `==`* (a, b: SexpNode): bool =
   ## Check two nodes for equality
   if a.isNil:
     if b.isNil: return true