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
commit aac54b9c7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,7 +409,7 @@ macro convertSexp*(x: untyped): untyped =
## `%` for every element. ## `%` for every element.
result = toSexp(x) result = toSexp(x)
proc `==`* (a,b: SexpNode): bool = proc `==`* (a, b: SexpNode): bool {.noSideEffect.} =
## Check two nodes for equality ## Check two nodes for equality
if a.isNil: if a.isNil:
if b.isNil: return true if b.isNil: return true