blob: 22c71817526236f9f01b1f2abeb6a987866dd7b0 [file] [log] [blame]
Russ Cox2b1c9b42012-02-16 23:49:30 -05001// errorcheck
Robert Griesemerd58cd762008-11-17 16:37:13 -08002
3// Copyright 2009 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
Russ Cox4cf77112009-01-30 14:39:31 -08009type T func()
Robert Griesemerd58cd762008-11-17 16:37:13 -080010
Russ Cox839a6842009-01-20 14:40:40 -080011type I interface {
Ian Lance Taylordb3ec4f2010-02-04 21:31:30 -080012 f, g (); // ERROR "name list not allowed"
Russ Cox7743ffe2009-09-28 14:05:34 -070013}
14
15type J interface {
Ian Lance Taylor91173b82009-08-13 09:42:28 -070016 h T; // ERROR "syntax|signature"
Robert Griesemerd58cd762008-11-17 16:37:13 -080017}