'var T' doesn't imply escaping
This commit is contained in:
parent
1e597c6332
commit
6fc01d1501
1 changed files with 1 additions and 1 deletions
|
|
@ -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) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue