summaryrefslogtreecommitdiffstats
path: root/src/internal/types/testdata/check/typeinstcycles.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/types/testdata/check/typeinstcycles.go')
-rw-r--r--src/internal/types/testdata/check/typeinstcycles.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/internal/types/testdata/check/typeinstcycles.go b/src/internal/types/testdata/check/typeinstcycles.go
new file mode 100644
index 0000000..74fe191
--- /dev/null
+++ b/src/internal/types/testdata/check/typeinstcycles.go
@@ -0,0 +1,11 @@
+// Copyright 2021 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
+
+import "unsafe"
+
+func F1[T any](_ [unsafe.Sizeof(F1[int])]T) (res T) { return }
+func F2[T any](_ T) (res [unsafe.Sizeof(F2[string])]int) { return }
+func F3[T any](_ [unsafe.Sizeof(F1[string])]int) {}