/
/
opt
/
golang
/
1.19.4
/
test
/
fixedbugs
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.137
PHP 8.3.16
Dir:
/opt/golang/1.19.4/test/fixedbugs
Edit:
/opt/golang/1.19.4/test/fixedbugs/bug157.go
// compile // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func f() {} func main() { x := 0; // this compiles switch x { case 0: f(); default: f(); } // this doesn't but it should // (semicolons are not needed at the end of a statement list) switch x { case 0: f() default: f() } } /* bug157.go:20: syntax error near default bug157.go:20: first switch statement must be a case */
Ukuran: 524 B