golang/go

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

dvyukov opened this issue · 1 comments

Gc correctly rejects the following program:

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

But gotype successfully compiles it. It must not. 0. is an fp constant.
on commit e9a746d

Duplicate of #11357