Debian Codegraph @

quickfix/qf1010/testdata/go1.9/CheckByteSlicePrinting/CheckByteSlicePrinting.go

raw
1 package pkg
2
3 import "fmt"
4
5 func fn() {
6 type ByteSlice []byte
7 type Alias1 = []byte
8 type Alias2 = ByteSlice
9 type Alias3 = byte
10 type Alias4 = []Alias3
11
12 fmt.Print(Alias1{}) //@ diag(`could convert argument to string`)
13 fmt.Print(Alias2{}) //@ diag(`could convert argument to string`)
14 fmt.Print(Alias4{}) //@ diag(`could convert argument to string`)
15 fmt.Print()
16 fmt.Fprint(nil)
17 }