You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go complains about missing return statement at the end of functions even when those return statements would be unreachable because all code paths appropriately return a value.
What version of Go are you using (go version)?
go version go1.6.3 linux/amd64
What operating system and processor architecture are you using (go env)?
Go complains about missing return statement at the end of functions even when those return statements would be unreachable because all code paths appropriately return a value.
What version of Go are you using (
go version
)?go version go1.6.3 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
This function emits an error message
Despite a return at the end of the function being unreachable in the presence of a
default
case in the switch statement.What did you expect to see?
A clean compilation
What did you see instead?
The text was updated successfully, but these errors were encountered: