We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9ffcca commit 6e7c691Copy full SHA for 6e7c691
test/typeparam/issue50109b.go
@@ -0,0 +1,29 @@
1
+// run -gcflags=-G=3
2
+
3
+// Copyright 2021 The Go Authors. All rights reserved.
4
+// Use of this source code is governed by a BSD-style
5
+// license that can be found in the LICENSE file.
6
7
+package main
8
9
+func main() {
10
+ F[any]()
11
+}
12
13
+func F[T any]() I[T] {
14
+ return (*S1[T])(nil)
15
16
17
+type I[T any] interface{}
18
19
+type S1[T any] struct {
20
+ *S2[T]
21
22
23
+type S2[T any] struct {
24
+ S3 *S3[T]
25
26
27
+type S3[T any] struct {
28
+ x int
29
0 commit comments