1// compile
2
3// Copyright 2012 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// Was failing to compile with 'invalid receiver' due to
8// incomplete type definition evaluation.  Issue 3709.
9
10package p
11
12type T1 struct { F *T2 }
13type T2 T1
14
15type T3 T2
16func (*T3) M()  // was invalid receiver
17
18