aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gocapturedrefrace.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go
index d8fc4ef..b4fe9db 100644
--- a/gocapturedrefrace.go
+++ b/gocapturedrefrace.go
@@ -108,6 +108,9 @@ func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) {
}
}
+ // TODO: Use (*types.Scope).LookupParent with ident to find out
+ // whether a variable was defined in an outer scope.
+
pass.Reportf(
ident.Pos(),
"variable found %q",