]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/internal/types/testdata/fixedbugs/issue25838.go
go/types, types2: introduce _Alias type node
[gostls13.git] / src / internal / types / testdata / fixedbugs / issue25838.go
index adbd138f165918ea24db41bffe5771bb312af32f..b0ea98ee89609f97bda9d7a0da0a26ccabfb5b72 100644 (file)
@@ -24,3 +24,17 @@ type (
        P = *T
        T P
 )
+
+func newA(c funcAlias) A {
+       return A{c: c}
+}
+
+type B struct {
+       a *A
+}
+
+type A struct {
+       c funcAlias
+}
+
+type funcAlias = func(B)