Skip to content

Commit 9f834a5

Browse files
mdempskygopherbot
authored andcommitted
test: add regress test for #58572
Fixes #58572. Change-Id: I75fa432afefc3e036ed9a6a9002a29d7b23105ee Reviewed-on: https://go-review.googlesource.com/c/go/+/468880 Reviewed-by: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> Auto-Submit: Matthew Dempsky <[email protected]>
1 parent 95be547 commit 9f834a5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

test/fixedbugs/issue58572.go

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}

0 commit comments

Comments
 (0)