mirror of
https://github.com/golang/go
synced 2024-11-18 12:34:42 -07:00
cef9fc3bc8
The existing implementation contains strict equality rules for comparing the return type in the function declaration against the return types in the function body. This causes the code in the return statement to be incorrectly overriden with its corresponding zero value type by the fillreturns analyzer. Fixes golang/go#38707 Change-Id: I07522aaf85f2a5f811a86cbc0951ae61035ff55e Reviewed-on: https://go-review.googlesource.com/c/tools/+/236617 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
fillreturns | ||
nonewvars | ||
noresultvalues | ||
simplifycompositelit | ||
simplifyrange | ||
simplifyslice | ||
undeclaredname | ||
unusedparams |