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