1
0
mirror of https://github.com/golang/go synced 2024-11-17 09:34:49 -07:00

pr-fixes: add dup("interface{~a | ~b | ~c; ~int | ~string; float64; m()}"),

Took 10 minutes

Change-Id: Ie122419e7efa93c593de8fd9236a1919970d42d1
This commit is contained in:
Hiro 2023-07-29 10:13:09 +05:30
parent f7b0fbd766
commit 8bbc76aaa7

View File

@ -49,6 +49,7 @@ var testExprs = []testEntry{
dup("interface{~int}"), dup("interface{~int}"),
// generic constraints // generic constraints
dup("interface{~a | ~b | ~c; ~int | ~string; float64; m()}"),
dup("interface{int | string}"), dup("interface{int | string}"),
dup("interface{~int | ~string; float64; m()}"), dup("interface{~int | ~string; float64; m()}"),
dup("interface{~T[int, string] | string}"), dup("interface{~T[int, string] | string}"),