This commit is contained in:
Andreas Rumpf 2016-06-06 10:06:39 +02:00
commit 02db36a90a
2 changed files with 2 additions and 2 deletions

View file

@ -505,7 +505,7 @@ proc notNilCheck(tracked: PEffects, n: PNode, paramType: PType) =
# addr(x[]) can't be proven, but addr(x) can:
if not containsNode(n, {nkDerefExpr, nkHiddenDeref}): return
elif (n.kind == nkSym and n.sym.kind in routineKinds) or
n.kind in procDefs+{nkObjConstr}:
n.kind in procDefs+{nkObjConstr, nkBracket}:
# 'p' is not nil obviously:
return
case impliesNotNil(tracked.guards, n)