diff options
Diffstat (limited to 'gocapturedrefrace.go')
-rw-r--r-- | gocapturedrefrace.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go index f3e2e81..517cf8e 100644 --- a/gocapturedrefrace.go +++ b/gocapturedrefrace.go @@ -56,6 +56,7 @@ func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) { formalParams = append(formalParams, field.Names[0].Obj) } fmt.Printf("%#v\n", formalParams) + // TODO: Ensure argument types are not references // TODO: Build a list of variables created in the closure assignments := assignmentsInFunc(pass, funcLit) |