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
internal/refactor/inline: falcon: only map keys can be variable
The falcon analysis for inlining composite literals allowed considering
arrays and slices for the uniqueness of their keys. But the keys of
array and slice literals must be constant, slices were not handled, and
the logic for arrays looked wrong.
Fix this by only considering the uniqueness of map keys.
Fixesgolang/go#74393
Change-Id: Ic7c34942b9b09558b12ef709be839299c347021c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/684295
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Alan Donovan <[email protected]>
0 commit comments