1 // errchk $G -e $D/$F.go
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.
9 type I interface { m() }
10 type T struct { m func() }
20 i = t // ERROR "not a method|has no methods"