Source file test/fixedbugs/issue58325.go
1 // compile 2 3 // Copyright 2023 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 S1 struct { 10 s2 S2 11 } 12 13 type S2 struct{} 14 15 func (S2) Make() S2 { 16 return S2{} 17 } 18 19 func (S1) Make() S1 { 20 return S1{s2: S2{}.Make()} 21 } 22 23 var _ = S1{}.Make() 24