blob: ff3577502f222c7b20ed30c24900054a1f9747a5 [file] [log] [blame]
Ryan Hitchmanf9805772010-12-09 13:41:24 -05001// errchk $G -e $D/$F.go
2
3// Copyright 2010 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9type xyz struct {
10 ch chan
Ian Lance Taylor0bc37a62011-03-29 06:47:39 -070011} // ERROR "unexpected .*}.* in channel type"
Ryan Hitchmanf9805772010-12-09 13:41:24 -050012
Ian Lance Taylor0bc37a62011-03-29 06:47:39 -070013func Foo(y chan) { // ERROR "unexpected .*\).* in channel type"
Ryan Hitchmanf9805772010-12-09 13:41:24 -050014}
15
16func Bar(x chan, y int) { // ERROR "unexpected comma in channel type"
17}