'var T' doesn't imply escaping

This commit is contained in:
Araq
2015-09-02 00:55:31 +02:00
parent 1e597c6332
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:
# p(f(x, y), X, g(h, z))
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)
proc deps(w: var W; n: PNode) =