Skip to content

Commit 79619c3

Browse files
committed
test: extend issue52124.go to also test #52139
Change-Id: I7da79d52d50d96536a8175ba08e9da551d07fadd Reviewed-on: https://go-review.googlesource.com/c/go/+/398094 Trust: Matthew Dempsky <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent c0bbeb0 commit 79619c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/typeparam/issue52124.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@
77
package p
88

99
type I interface{ any | int }
10+
11+
var (
12+
X I = 42
13+
Y I = "xxx"
14+
Z I = true
15+
)

0 commit comments

Comments
 (0)