quickfix/qf1010/testdata/go1.9/CheckByteSlicePrinting/CheckByteSlicePrinting.go.golden
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(string(Alias1{})) //@ diag(`could convert argument to string`) |
| 13 | fmt.Print(string(Alias2{})) //@ diag(`could convert argument to string`) |
| 14 | fmt.Print(string(Alias4{})) //@ diag(`could convert argument to string`) |
| 15 | fmt.Print() |
| 16 | fmt.Fprint(nil) |
| 17 | } |