'default' bug in switch statements is fixed

SVN=123411
This commit is contained in:
Rob Pike 2008-06-18 13:06:09 -07:00
parent a65cc2a867
commit 9b664c580f

View file

@ -18,6 +18,10 @@ func Alloc(i int) int {
}
}
func main() {
s := Alloc(7);
}
/*
bug028.go:7: unreachable statements in a switch
*/