-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cast of prim to small types gives no feedback #69
Comments
The cast is "ignored" since |
Actually after discussing a bit with @bgregoir, these are not really casts but instead instruction modifiers. Maybe we should think of another syntax then? Here is another counter-intuitive example. The first one compiles fine, since
|
Consider this example
This example compiles fine. The cast
(32u)
is silently ignored. I think this is done on purpose, but really confusing for the user that has no feedback on what happens. An error would be more user-friendly. Or a warning explaining that this is ignored.The text was updated successfully, but these errors were encountered: