sequtils now support strict effect tracking (#18782)
This commit is contained in:
parent
7c8ea490a2
commit
69cabaa81c
2 changed files with 19 additions and 9 deletions
|
|
@ -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.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue