go/internal/lsp/testdata/builtins
Muir Manders ef80cdb6ec internal/lsp/completion: fix untyped int type inference
For index expressions, optional "make" args, and composite literal
slice/array keys, we were inferring an expected type of int instead of
untyped int. This caused candidate rankings to not be quite right in
general, and in particular, after support for automatic type
conversions was added, the issue manifested as:

    var foo []int
    var bar int32
    foo[ba<>] // completed to "int(bar)" instead of "bar"

Fixes golang/go#43375.

Change-Id: I6daef7d23b767f296bdbbc8f47f5b2c972ad9b80
Reviewed-on: https://go-review.googlesource.com/c/tools/+/289272
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Rebecca Stambler <rstambler@golang.org>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
2021-02-05 20:20:24 +00:00
..
builtin_args.go internal/lsp/completion: fix untyped int type inference 2021-02-05 20:20:24 +00:00
builtin_types.go internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
builtins.go internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
constants.go internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00