...
1
2
3
4
5 package p
6
7 type T[P any] struct{}
8
9 func _(x interface{}) {
10 switch x.(type) {
11 case nil:
12 case int:
13
14 case T[int]:
15 case []T[int]:
16 case [10]T[int]:
17 case struct{T[int]}:
18 case *T[int]:
19 case func(T[int]):
20 case interface{m(T[int])}:
21 case map[T[int]] string:
22 case chan T[int]:
23
24 case T :
25 case []T :
26 case [10]T :
27 case struct{T }:
28 case *T :
29 case func(T ):
30 case interface{m(T )}:
31 case map[T ] string:
32 case chan T :
33
34 case T , *T :
35 }
36 }
37
38
39
40 func _(x interface{}) {
41 switch x.(type) {
42 case ((nil)), int:
43 }
44 }
45
46
47
48 func _(x interface{}) {
49 type nil int
50 switch x.(type) {
51 case nil:
52 }
53 }
54
55 func _(x interface{}) {
56 var nil int
57 switch x.(type) {
58 case nil :
59 }
60 }
61
View as plain text