aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/testdata/fixedbugs/issue39755.go2
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/testdata/fixedbugs/issue39755.go2')
-rw-r--r--src/go/types/testdata/fixedbugs/issue39755.go24
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/types/testdata/fixedbugs/issue39755.go2 b/src/go/types/testdata/fixedbugs/issue39755.go2
index b7ab68818e..257b73a2fb 100644
--- a/src/go/types/testdata/fixedbugs/issue39755.go2
+++ b/src/go/types/testdata/fixedbugs/issue39755.go2
@@ -4,14 +4,14 @@
package p
-func _[T interface{type map[string]int}](x T) {
+func _[T interface{~map[string]int}](x T) {
_ = x == nil
}
// simplified test case from issue
type PathParamsConstraint interface {
- type map[string]string, []struct{key, value string}
+ ~map[string]string | ~[]struct{key, value string}
}
type PathParams[T PathParamsConstraint] struct {