aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2023-02-06 14:27:06 +0700
committerGopher Robot <gobot@golang.org>2023-02-07 20:59:40 +0000
commit1bd0405b8fc4b2c308927df0803475e83542dd78 (patch)
tree8a4a87a168bd283fc2fb972d498c6dcb689c4c85
parentd939b3717f8eb68adb949132a6f334d6cc31045b (diff)
downloadgo-1bd0405b8fc4b2c308927df0803475e83542dd78.tar.xz
test: add test for issue 58345
CL 458619 fixed the problem un-intentionally, so adding test to prevent regression happening. Updates #58345 Change-Id: I80cf60716ef85e142d769e8621fce19c826be03d Reviewed-on: https://go-review.googlesource.com/c/go/+/465455 Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: David Chase <drchase@google.com>
-rw-r--r--test/fixedbugs/issue58345.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/fixedbugs/issue58345.go b/test/fixedbugs/issue58345.go
new file mode 100644
index 0000000000..ede8ffd1ec
--- /dev/null
+++ b/test/fixedbugs/issue58345.go
@@ -0,0 +1,15 @@
+// compile
+
+// Copyright 2023 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package p
+
+type I1 interface {
+ int | any
+}
+
+type I2 interface {
+ int | any
+}