go/analysis/passes/stringintconv/testdata/src/fix/fixnamed.go.golden
raw| 1 | -- Format the number as a decimal -- |
| 2 | package fix |
| 3 | |
| 4 | import "fmt" |
| 5 | |
| 6 | type mystring string |
| 7 | |
| 8 | func _(x int16) mystring { |
| 9 | return mystring(fmt.Sprint(x)) // want `conversion from int16 to mystring \(string\)...` |
| 10 | } |
| 11 | |
| 12 | -- Convert a single rune to a string -- |
| 13 | package fix |
| 14 | |
| 15 | type mystring string |
| 16 | |
| 17 | func _(x int16) mystring { |
| 18 | return mystring(rune(x)) // want `conversion from int16 to mystring \(string\)...` |
| 19 | } |