mirror of
https://github.com/golang/go
synced 2024-11-05 11:56:12 -07:00
8fa0d85b38
Fixes #18092. Change-Id: I54e2da2e0f168c068f5e4a1b22ba508d78259168 Reviewed-on: https://go-review.googlesource.com/33658 TryBot-Result: Gobot Gobot <gobot@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
16 lines
306 B
Go
16 lines
306 B
Go
// errorcheck
|
|
|
|
// Copyright 2016 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 p
|
|
|
|
func _() {
|
|
var ch chan bool
|
|
select {
|
|
default:
|
|
case <-ch { // don't crash here
|
|
} // ERROR "expecting :"
|
|
}
|