x/tools/go/types: converts fp constant to string (original) (raw)
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
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