-
Notifications
You must be signed in to change notification settings - Fork 27
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
Error message for Integer type mismatch #41
Comments
How can it be improved specifically? |
Suggest using |
Ah, if you use |
Oh btw, we still have functions like |
Ummm. |
It shouldn't... it should infer that 1 : U32. |
interestingly if I put |
The type of a numeric literal is inferred from context.. so of course that would work?? |
Ah, I might have misunderstood you. Should |
Yes. |
I see. |
Yes, the literals are no longer given the smallest integer type possible. They are now given whatever integer type is inferred from context (so long as it's big enough to fit the literal). |
Now it says something like:
Can be better.
The text was updated successfully, but these errors were encountered: