| 1 |
//go:build ignore |
| 2 |
// +build ignore |
| 3 |
|
| 4 |
package issue66783b |
| 5 |
|
| 6 |
type I1[T any] interface { |
| 7 |
M(T) |
| 8 |
} |
| 9 |
|
| 10 |
type I2[T any] I1[T] |
| 11 |
|
| 12 |
func foo[T any](i I2[T]) { |
| 13 |
_ = i.M |
| 14 |
} |
| 15 |
|
| 16 |
type S[T any] struct{} |
| 17 |
|
| 18 |
func (s S[T]) M(t T) {} |
| 19 |
|
| 20 |
func M2() { |
| 21 |
foo[int](I2[int](S[int]{})) |
| 22 |
} |