]> Cypherpunks.ru repositories - gostls13.git/blob - src/internal/types/testdata/fixedbugs/issue50779.go
go/types, types2: move shared tests into internal/types/testdata
[gostls13.git] / src / internal / types / testdata / fixedbugs / issue50779.go
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package p
6
7 type AC interface {
8         C
9 }
10
11 type ST []int
12
13 type R[S any, P any] struct{}
14
15 type SR = R[SS, ST]
16
17 type SS interface {
18         NSR(any) *SR // ERROR invalid use of type alias SR in recursive type
19 }
20
21 type C interface {
22         NSR(any) *SR
23 }