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
This commit is contained in:
parent
d149727f34
commit
ef29987781
16 changed files with 85 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue