summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-01-19 05:02:35 +0800
committerGitHub <noreply@github.com>2022-01-18 16:02:35 -0500
commitaac54b9c7ffb75c9aab446574171b33bf23a29ed (patch)
treee2e59f9309f4a461107e406db429ea640d37a854
parentd7869a80092354468594f7d5c5dfdd91f564fec7 (diff)
downloadNim-aac54b9c7ffb75c9aab446574171b33bf23a29ed.tar.gz
fix stricteffects (nimsuggest/sexp) (#19405)
* fix stricteffects (nimsuggest/sexp)

* Update tstrict_effects3.nim

* Update tests/effects/tstrict_effects3.nim
-rw-r--r--nimsuggest/sexp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/nimsuggest/sexp.nim b/nimsuggest/sexp.nim
index cee538b6e..31f4988e1 100644
--- a/nimsuggest/sexp.nim
+++ b/nimsuggest/sexp.nim
@@ -409,7 +409,7 @@ macro convertSexp*(x: untyped): untyped =
   ## `%` for every element.
   result = toSexp(x)
 
-proc `==`* (a,b: SexpNode): bool =
+proc `==`* (a, b: SexpNode): bool {.noSideEffect.} =
   ## Check two nodes for equality
   if a.isNil:
     if b.isNil: return true