From 1bd0405b8fc4b2c308927df0803475e83542dd78 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Mon, 6 Feb 2023 14:27:06 +0700 Subject: [PATCH] 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 Reviewed-by: Keith Randall Run-TryBot: Cuong Manh Le TryBot-Result: Gopher Robot Reviewed-by: Keith Randall Reviewed-by: David Chase --- test/fixedbugs/issue58345.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/fixedbugs/issue58345.go 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 +} -- 2.50.0