x/tools/go/types: converts fp constant to string
dvyukov opened this issue · comments
Dmitry Vyukov commented
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
Robert Griesemer commented
Duplicate of #11357