sequtils now support strict effect tracking (#18782)

This commit is contained in:
Andreas Rumpf
2021-09-02 14:35:25 +02:00
committed by GitHub
parent 7c8ea490a2
commit 69cabaa81c
2 changed files with 19 additions and 9 deletions

View File

@@ -8,6 +8,9 @@ import std/sequtils
import strutils
from algorithm import sorted
{.experimental: "strictEffects".}
{.push warningAsError[Effect]: on.}
# helper for testing double substitution side effects which are handled
# by `evalOnceAs`
var counter = 0
@@ -507,3 +510,5 @@ template main =
static: main()
main()
{.pop.}