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
parent 79b25a911b
commit bce1f35f87

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):