fix stricteffects (nimsuggest/sexp) (#19405)

* fix stricteffects (nimsuggest/sexp)

* Update tstrict_effects3.nim

* Update tests/effects/tstrict_effects3.nim
This commit is contained in:
flywind
2022-01-19 05:02:35 +08:00
committed by GitHub
parent d7869a8009
commit aac54b9c7f

View File

@@ -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