even more strict isNil handling for strings/seqs in order to detect bugs
This commit is contained in:
parent
9047c3f582
commit
64517445ea
36 changed files with 193 additions and 245 deletions
|
|
@ -323,13 +323,13 @@ proc catches(tracked: PEffects, e: PType) =
|
|||
dec L
|
||||
else:
|
||||
inc i
|
||||
if not isNil(tracked.exc.sons):
|
||||
if tracked.exc.len > 0:
|
||||
setLen(tracked.exc.sons, L)
|
||||
else:
|
||||
assert L == 0
|
||||
|
||||
proc catchesAll(tracked: PEffects) =
|
||||
if not isNil(tracked.exc.sons):
|
||||
if tracked.exc.len > 0:
|
||||
setLen(tracked.exc.sons, tracked.bottom)
|
||||
|
||||
proc track(tracked: PEffects, n: PNode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue