2012-02-16 23:49:30 -05:00
|
|
|
// errorcheck
|
2008-11-17 16:37:13 -08:00
|
|
|
|
|
|
|
// 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
|
|
|
|
|
2009-01-30 14:39:31 -08:00
|
|
|
type T func()
|
2008-11-17 16:37:13 -08:00
|
|
|
|
2009-01-20 14:40:40 -08:00
|
|
|
type I interface {
|
2022-03-29 19:38:00 -07:00
|
|
|
f, g (); // ERROR "unexpected comma"
|
2009-09-28 14:05:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type J interface {
|
2009-08-13 09:42:28 -07:00
|
|
|
h T; // ERROR "syntax|signature"
|
2008-11-17 16:37:13 -08:00
|
|
|
}
|