fixes strict effects (#20885)

* fixes strict effects

* remove nosideeffect

* Update lib/system/comparisons.nim
This commit is contained in:
ringabout 2022-11-22 03:55:13 +08:00 • committed by GitHub
commit bce1f35f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1683,7 +1683,7 @@ proc pop*[T](s: var seq[T]): T {.inline, noSideEffect.} =
result = s[L]
setLen(s, L)
func `==`*[T: tuple|object](x, y: T): bool =
proc `==`*[T: tuple|object](x, y: T): bool =
## Generic `==` operator for tuples that is lifted from the components.
## of `x` and `y`.
for a, b in fields(x, y):