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 7package p 8 9type T struct{} 10 11var ( 12 t = T{} 13 u = t.New() 14) 15 16func x(T) (int, int) { return 0, 0 } 17 18var _, _ = x(u) 19 20func (T) New() T { return T{} } 21