mirror of
https://github.com/golang/go
synced 2024-09-30 22:58:34 -06:00
8d77031968
We were panicking when a LHS assignee's type was nil, such as: // "foo" has not been declared foo = 123 A recent refactoring changed (*completer).typeMatches() to no longer gracefully handle a nil types.Type for its first parameter. That behavior seems fine, so fix the problematic caller of typeMatches to check for nil before calling. Change-Id: Ie11e4a2d374ab1efbf6fd13fbe214e06d359fca0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/221020 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
apidiff | ||
fastwalk | ||
gocommand | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
packagesinternal | ||
span | ||
telemetry | ||
testenv | ||
tool | ||
xcontext |