diff options
-rw-r--r-- | gocapturedrefrace.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go index 8f79d76..1e00d21 100644 --- a/gocapturedrefrace.go +++ b/gocapturedrefrace.go @@ -63,6 +63,9 @@ func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) { return true } + // TODO: Find out whether ident is a captured reference + // Maybe check if variable was not assigned or passed as an argument? + pass.Reportf( ident.Pos(), "variable found %q", |