mirror of
https://github.com/golang/go
synced 2024-11-18 15:04:44 -07:00
40866c6c36
The existing implementation looks for matching types in the declaration and the leftmost value in the return statement. Instead, the analyzer now searches across all the values in the return statement to find one that matches the type in the declaration. Additionally, if a value in the return statement does not match any type in the declaration, it is not overriden. Change-Id: I4d4aed0ef67e59bfd886b44055d523a8c478255c Reviewed-on: https://go-review.googlesource.com/c/tools/+/236962 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
testdata/src/a | ||
fillreturns_test.go | ||
fillreturns.go |