src/go/doc/testdata/issue62640.go
raw| 1 | // Copyright 2025 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package issue62640 |
| 6 | |
| 7 | type E struct{} |
| 8 | |
| 9 | // F should be hidden within S because of the S.F field. |
| 10 | func (E) F() {} |
| 11 | |
| 12 | type S struct { |
| 13 | E |
| 14 | F int |
| 15 | } |