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