blob: e3a80a0185b38fd77e5b91c21b92fdeb704ca86d [file] [log] [blame]
-- Format the number as a decimal --
package fix
import "fmt"
type mystring string
func _(x int16) mystring {
return mystring(fmt.Sprint(x)) // want `conversion from int16 to mystring \(string\)...`
}
-- Convert a single rune to a string --
package fix
type mystring string
func _(x int16) mystring {
return mystring(rune(x)) // want `conversion from int16 to mystring \(string\)...`
}