Text file src/go/types/testdata/fixedbugs/issue50779.go2
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 } 24