2012-02-16 21:49:30 -07:00
|
|
|
// errorcheck
|
2008-11-17 17:37:13 -07: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 15:39:31 -07:00
|
|
|
type T func()
|
2008-11-17 17:37:13 -07:00
|
|
|
|
2009-01-20 15:40:40 -07:00
|
|
|
type I interface {
|
2010-02-04 22:31:30 -07:00
|
|
|
f, g (); // ERROR "name list not allowed"
|
2009-09-28 15:05:34 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type J interface {
|
2009-08-13 10:42:28 -06:00
|
|
|
h T; // ERROR "syntax|signature"
|
2008-11-17 17:37:13 -07:00
|
|
|
}
|
|
|
|
|