Source file
test/fixedbugs/issue16949.go
1
2
3
4
5
6
7
8
9 package main
10
11 var sink []byte
12
13 func main() {
14 sink = make([]byte, 1.0)
15 sink = make([]byte, float32(1.0))
16 sink = make([]byte, float64(1.0))
17
18 sink = make([]byte, 0, 1.0)
19 sink = make([]byte, 0, float32(1.0))
20 sink = make([]byte, 0, float64(1.0))
21
22 sink = make([]byte, 1+0i)
23 sink = make([]byte, complex64(1+0i))
24 sink = make([]byte, complex128(1+0i))
25
26 sink = make([]byte, 0, 1+0i)
27 sink = make([]byte, 0, complex64(1+0i))
28 sink = make([]byte, 0, complex128(1+0i))
29
30 }
31
View as plain text