mirror of https://github.com/golang/go.git
Although such a control-flow path is impossible by construction, we must avoid no-arg returns (even if unreachable) in non-void functions. Tested by adding a sanity-check that ssa.Return has the correct arity. Also: added ssautil.Switches() test. Fixes golang/go#7702 R=gri, axwalk CC=golang-codereviews https://golang.org/cl/46520043 |
||
|---|---|---|
| .. | ||
| switches.go | ||