'var T' doesn't imply escaping

This commit is contained in:
Araq 2015-09-02 00:55:31 +02:00
commit 6fc01d1501

View file

@ -83,7 +83,7 @@ proc depsArgs(w: var W; n: PNode) =
if sfWrittenTo in paramType.sym.flags or paramType.typ.kind == tyVar: if sfWrittenTo in paramType.sym.flags or paramType.typ.kind == tyVar:
# p(f(x, y), X, g(h, z)) # p(f(x, y), X, g(h, z))
deps(w, it, w.markAsWrittenTo) deps(w, it, w.markAsWrittenTo)
if sfEscapes in paramType.sym.flags or paramType.typ.kind == tyVar: if sfEscapes in paramType.sym.flags:
deps(w, it, w.markAsEscaping) deps(w, it, w.markAsEscaping)
proc deps(w: var W; n: PNode) = proc deps(w: var W; n: PNode) =