golang/go

x/tools/go/types: converts complex constant to string

dvyukov opened this issue · 1 comments

gotype successfully compiles the following program:

package a
var s = string(0i)

It must not. 0i is a complex constant.
on commit e9a746d

When fixed please also add the test from #11353:

package n
func n(){_=string(0.)}