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:
parent
a65cc2a867
commit
9b664c580f
@ -18,6 +18,10 @@ func Alloc(i int) int {
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
s := Alloc(7);
|
||||
}
|
||||
|
||||
/*
|
||||
bug028.go:7: unreachable statements in a switch
|
||||
*/
|
Loading…
Reference in New Issue
Block a user