Home | History | Annotate | Download | only in fixedbugs
      1 // compile
      2 
      3 // Copyright 2015 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 package p
      8 
      9 type T struct{}
     10 
     11 var (
     12 	t = T{}
     13 	u = t.New()
     14 )
     15 
     16 func x(T) (int, int) { return 0, 0 }
     17 
     18 var _, _ = x(u)
     19 
     20 func (T) New() T { return T{} }
     21