Source file test/fixedbugs/bug443.go

     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  
    18  

View as plain text