mirror of
https://github.com/golang/go
synced 2024-11-13 15:20:22 -07:00
040fe32119
Part of issue 2833, but works fine with current test runner. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5606056
16 lines
295 B
Go
16 lines
295 B
Go
// $G $D/$F.go || echo BUG should 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 bug118
|
|
|
|
func Send(c chan int) int {
|
|
select {
|
|
default:
|
|
return 1;
|
|
}
|
|
return 2;
|
|
}
|