]> Cypherpunks repositories - gostls13.git/commit
spec: fallthrough may not appear in last clause of a switch
authorRobert Griesemer <gri@golang.org>
Sat, 2 Mar 2013 00:45:14 +0000 (16:45 -0800)
committerRobert Griesemer <gri@golang.org>
Sat, 2 Mar 2013 00:45:14 +0000 (16:45 -0800)
commit67a6b4f0ef04e547e671230d84f96b00a2966113
tree5f39db79ae9f329da67b3bb8f1eb90909d8156ab
parentf235d5d8d702778c7d16e573c855519a8238951c
spec: fallthrough may not appear in last clause of a switch

Replacement for CL 7370053 which attempted to make fallthrough's
syntactically a part of switch statements. Because they may be
labeled, fixing that CL completely would require too much spec
surgery.

Fixes #4923.

R=r, iant, rsc, ken
CC=golang-dev
https://golang.org/cl/7416048
doc/go_spec.html