From: Cuong Manh Le Date: Mon, 6 Feb 2023 07:27:06 +0000 (+0700) Subject: test: add test for issue 58345 X-Git-Tag: go1.21rc1~1624 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1bd0405b8fc4b2c308927df0803475e83542dd78;p=gostls13.git 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 --- 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 +}