Russ Cox | 2b1c9b4 | 2012-02-16 23:49:30 -0500 | [diff] [blame] | 1 | // errorcheck |
Robert Griesemer | d58cd76 | 2008-11-17 16:37:13 -0800 | [diff] [blame] | 2 | |
| 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 | |
| 7 | package main |
| 8 | |
Russ Cox | 4cf7711 | 2009-01-30 14:39:31 -0800 | [diff] [blame] | 9 | type T func() |
Robert Griesemer | d58cd76 | 2008-11-17 16:37:13 -0800 | [diff] [blame] | 10 | |
Russ Cox | 839a684 | 2009-01-20 14:40:40 -0800 | [diff] [blame] | 11 | type I interface { |
Ian Lance Taylor | db3ec4f | 2010-02-04 21:31:30 -0800 | [diff] [blame] | 12 | f, g (); // ERROR "name list not allowed" |
Russ Cox | 7743ffe | 2009-09-28 14:05:34 -0700 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | type J interface { |
Ian Lance Taylor | 91173b8 | 2009-08-13 09:42:28 -0700 | [diff] [blame] | 16 | h T; // ERROR "syntax|signature" |
Robert Griesemer | d58cd76 | 2008-11-17 16:37:13 -0800 | [diff] [blame] | 17 | } |