Source file
test/map1.go
1
2
3
4
5
6
7
8
9
10 package main
11
12 type v bool
13
14 var (
15
16 _ map[int8]v
17 _ map[uint8]v
18 _ map[int16]v
19 _ map[uint16]v
20 _ map[int32]v
21 _ map[uint32]v
22 _ map[int64]v
23 _ map[uint64]v
24 _ map[int]v
25 _ map[uint]v
26 _ map[uintptr]v
27 _ map[float32]v
28 _ map[float64]v
29 _ map[complex64]v
30 _ map[complex128]v
31 _ map[bool]v
32 _ map[string]v
33 _ map[chan int]v
34 _ map[*int]v
35 _ map[struct{}]v
36 _ map[[10]int]v
37
38
39 _ map[[]int]v
40 _ map[func()]v
41 _ map[map[int]int]v
42 _ map[T1]v
43 _ map[T2]v
44 _ map[T3]v
45 _ map[T4]v
46 _ map[T5]v
47 _ map[T6]v
48 _ map[T7]v
49 _ map[T8]v
50 )
51
52 type T1 []int
53 type T2 struct { F T1 }
54 type T3 []T4
55 type T4 struct { F T3 }
56
57 type T5 *int
58 type T6 struct { F T5 }
59 type T7 *T4
60 type T8 struct { F *T7 }
61
62 func main() {
63 m := make(map[int]int)
64 delete()
65 delete(m)
66 delete(m, 2, 3)
67 delete(1, m)
68 }
69
View as plain text