Closed
Description
The spec does not prohibit multiple integer constant case values from being equal: var x int switch x { case 1: case 1: } is not illegal according to http://tip.golang.org/ref/spec#Switch_statements . However, running this program ( http://play.golang.org/p/MkI5XjE1TS ) results in: prog.go:7: duplicate case in switch previous case at prog.go:6 using the gc compiler.