mirror of
https://github.com/golang/go
synced 2024-11-18 17:04:41 -07:00
cbc0cc175f
We were crashing in cases like: var _ []byte = append([]byte{}, ""...<>) We were type asserting the type of append's second param to *types.Slice, but in this case it is a string (*types.Basic). Fix by checking the type assert was successful. Note that we still don't attempt to give string completions when appending to a byte slice. We can add that special case later once everyone is clamoring for it. Change-Id: I1d2fbd7f538e580d33c2dab4ef127a88e16d7ced Reviewed-on: https://go-review.googlesource.com/c/tools/+/219144 Run-TryBot: Muir Manders <muir@mnd.rs> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
apidiff | ||
fastwalk | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
packagesinternal | ||
span | ||
telemetry | ||
testenv | ||
tool | ||
xcontext |