You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolving struct fields is a known limitation of go/parser object resolution. However, there is an additional bug that composite lit fields may be incorrectly resolved to unrelated declarations in the package scope. For example:
Activity
gopherbot commentedon Mar 24, 2021
Change https://golang.org/cl/304450 mentions this issue:
go/parser: add data-driven tests for object resolutiongo/parser: add data-driven tests for object resolution
gopherbot commentedon Sep 20, 2022
Change https://go.dev/cl/432137 mentions this issue:
go/analysis/passes/loopclosure: use object resoluttion from go/typesgo/analysis/passes/loopclosure: use go/types' object resolution