mirror of
https://github.com/golang/go
synced 2024-11-19 03:14:42 -07:00
bc0b458b10
Fix type inference to expect a type name for the first "make()" parameter and an integer for later parameters. For example: // Previously we expected "[]int{}", now we expect "[]int". var _ []int = make(<>) Note that we don't currently support actually completing to unnamed type names like "[]int", but this improvement at least eliminates nonsensical completion suggestions. // Previously we had no expectation, now we expect an int. var _ []int = make([]int, <>) Change-Id: Ifd349767662ab6902d3a3ea9e52de7df70cb37c7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/217310 Run-TryBot: Muir Manders <muir@mnd.rs> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ingo Oeser <nightlyone@googlemail.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
builtin_args.go | ||
builtins.go | ||
constants.go |