2010-12-09 18:41:24 +00:00
|
|
|
// errchk $G -e $D/$F.go
|
|
|
|
|
|
|
|
// Copyright 2010 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
|
|
|
|
|
|
|
|
type xyz struct {
|
|
|
|
ch chan
|
2011-03-29 13:47:39 +00:00
|
|
|
} // ERROR "unexpected .*}.* in channel type"
|
2010-12-09 18:41:24 +00:00
|
|
|
|
2011-03-29 13:47:39 +00:00
|
|
|
func Foo(y chan) { // ERROR "unexpected .*\).* in channel type"
|
2010-12-09 18:41:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func Bar(x chan, y int) { // ERROR "unexpected comma in channel type"
|
|
|
|
}
|