1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:51:37 -07:00

'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
*/