-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
types2: math.MaxFloat32 is unexpectedly inferred as float64 #51556
Comments
MaxFloat32 is a float64 const. So everything works as expected here |
Aren't they untyped consts?
|
|
That's indeed a bit non-intuitive. If spec has defined default type, I don't see much more we can do here... |
What did you do?
https://go.dev/play/p/uYfc9rcmP1j?v=gotip
What did you expect to see?
OK
What did you see instead?
???
The text was updated successfully, but these errors were encountered: