diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-11-24 14:31:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 07:31:47 +0100 |
commit | ef2998778138fd0b9a102a1c48c1eacd98361105 (patch) | |
tree | a7a6b86bc0e0d2562c731120eb8bb687c77c180a /lib/std/envvars.nim | |
parent | d149727f3433e2c9dc1d84b6540a8abf6a864fd2 (diff) | |
download | Nim-ef2998778138fd0b9a102a1c48c1eacd98361105.tar.gz |
An unnamed break in a block now gives an `UnnamedBreak` warning (#20901)
* unnamed break in the block now gives an error * bootstrap * fixes * more fixes * break with label * label again * one moee * Delete test5.txt * it now gives a UnnamedBreak warning * change the URL of bump back to the original one
Diffstat (limited to 'lib/std/envvars.nim')
-rw-r--r-- | lib/std/envvars.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/envvars.nim b/lib/std/envvars.nim index 9748cd2ad..d86f13f8d 100644 --- a/lib/std/envvars.nim +++ b/lib/std/envvars.nim @@ -173,11 +173,11 @@ when not defined(nimscript): iterator envPairsImpl(): tuple[key, value: string] {.tags: [ReadEnvEffect].} = when defined(windows): - block: + block implBlock: template impl(get_fun, typ, size, zero, free_fun) = let env = get_fun() var e = env - if e == nil: break + if e == nil: break implBlock while true: let eend = strEnd(e) let kv = $e |