compiler: call error_statement for fallthrough in last case

It is possible to do this check in backend, by walking the
block and check whether the last statement is a goto. But it
seems easier to do it in the frontend, where it can simply use
is_fallthrough.

Change-Id: Icd61c52c96a408f7e00566cb7b232848cd449e25
Reviewed-on: https://go-review.googlesource.com/63690
Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 file changed