mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-30 12:17:56 +00:00
sequtils now support strict effect tracking (#18782)
This commit is contained in:
@@ -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.}
|
||||
|
||||
Reference in New Issue
Block a user