test/fixedbugs/issue58572.go
raw| 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 | func New() resource { |
| 10 | return &Client{} |
| 11 | } |
| 12 | |
| 13 | type resource interface { |
| 14 | table() |
| 15 | } |
| 16 | |
| 17 | type Client struct { |
| 18 | m map[Key1]int |
| 19 | } |
| 20 | |
| 21 | func (c *Client) table() {} |
| 22 | |
| 23 | type Key1 struct { |
| 24 | K Key2 |
| 25 | } |
| 26 | |
| 27 | type Key2 struct { |
| 28 | f [2]any |
| 29 | } |