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
7package p
8
9type S1 struct {
10	s2 S2
11}
12
13type S2 struct{}
14
15func (S2) Make() S2 {
16	return S2{}
17}
18
19func (S1) Make() S1 {
20	return S1{s2: S2{}.Make()}
21}
22
23var _ = S1{}.Make()
24