Source file test/typeparam/issue47710.go
1 // compile 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 p 8 9 type FooType[t any] interface { 10 Foo(BarType[t]) 11 } 12 type BarType[t any] interface { 13 Int(IntType[t]) FooType[int] 14 } 15 16 type IntType[t any] int 17 18 func (n IntType[t]) Foo(BarType[t]) {} 19 func (n IntType[_]) String() {} 20