github.com/zach-klippenstein/go@v0.0.0-20150108044943-fcfbeb3adf58/test/fixedbugs/bug443.go (about)

     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  
    10  package p
    11  
    12  type T1 struct { F *T2 }
    13  type T2 T1
    14  
    15  type T3 T2
    16  func (*T3) M()  // was invalid receiver
    17