mirror of
https://github.com/golang/go
synced 2024-11-18 18:44:42 -07:00
e96d959c47
In cases like: type myInt int const ( a = 1 b myInt = 2 ) var foo myInt = <> We now prefer "b" over "a" since b's type matches the expected type exactly. Change-Id: I675934761cc17f6b303b63b4715b31dd1af7cea1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/202737 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
assign_rank.go.in | ||
binexpr_rank.go.in | ||
convert_rank.go.in | ||
switch_rank.go.in | ||
type_assert_rank.go.in | ||
type_switch_rank.go.in |