Remove the implicit out variable

This commit is contained in:
Nigel Tao committed 2018-07-29 10:10:58 +10:00
1 parent 9919d78245
commit 58ded30954
4 files changed
+3 -14

No files matched your search

+2 -2
View File
@@ -196,9 +196,9 @@ loop:
}
// o is a yield statement.
//
// Drop any facts involving in, out or this.
// Drop any facts involving in or this.
if err := q.facts.update(func(x *a.Expr) (*a.Expr, error) {
if x.Mentions(exprIn) || x.Mentions(exprOut) || x.Mentions(exprThis) {
if x.Mentions(exprIn) || x.Mentions(exprThis) {
return nil, nil
}
return x, nil