Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dvyukov opened this issue Jun 23, 2015 · 1 comment
Closed

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

dvyukov opened this issue Jun 23, 2015 · 1 comment

Comments

@dvyukov
Copy link
Member

dvyukov commented Jun 23, 2015

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

@griesemer
Copy link
Contributor

Duplicate of #11357

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants