| 1 |
package p |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
type G[T any] []T |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
type G[A any] []A |
| 11 |
|
| 12 |
|
| 13 |
type GM[A, B comparable] map[A]B |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
type GM[A, B comparable] map[B]A |
| 18 |
|
| 19 |
|
| 20 |
type GT[V any] struct { |
| 21 |
} |
| 22 |
|
| 23 |
func (GT[V]) M(*GT[V]) {} |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
type GT[V any] struct { |
| 28 |
} |
| 29 |
|
| 30 |
func (GT[V]) M(*GT[V]) {} |
| 31 |
|
| 32 |
|
| 33 |
type GT2[V any] struct { |
| 34 |
} |
| 35 |
|
| 36 |
func (GT2[V]) M(*GT2[V]) {} |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
type GT2[V comparable] struct { |
| 41 |
} |
| 42 |
|
| 43 |
func (GT2[V]) M(*GT2[V]) {} |
| 44 |
|
| 45 |
|
| 46 |
type custom interface { |
| 47 |
int |
| 48 |
} |
| 49 |
|
| 50 |
type GT3[E custom] map[E]int |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
type H[T any] []T |
| 58 |
|
| 59 |
|
| 60 |
var V1 H[int] |
| 61 |
|
| 62 |
type T int |
| 63 |
|
| 64 |
var V2 H[T] |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
var V1 H[bool] |
| 69 |
|
| 70 |
|
| 71 |
type T bool |
| 72 |
|
| 73 |
|
| 74 |
var V2 H[T] |
| 75 |
|
| 76 |
|
| 77 |
type t int |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
type t byte |
| 82 |
|
| 83 |
|
| 84 |
var V3 H[t] |