1// compile
2
3// Copyright 2013 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// Issue 6140: compiler incorrectly rejects method values
8// whose receiver has an unnamed interface type.
9
10package p
11
12type T *interface {
13	m() int
14}
15
16var x T
17
18var _ = (*x).m
19
20var y interface {
21	m() int
22}
23
24var _ = y.m
25
26type I interface {
27	String() string
28}
29
30var z *struct{ I }
31var _ = z.String
32