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

C casting syntax - compiler error message #6

Open
exemd opened this issue Jun 24, 2014 · 0 comments
Open

C casting syntax - compiler error message #6

exemd opened this issue Jun 24, 2014 · 0 comments

Comments

@exemd
Copy link

exemd commented Jun 24, 2014

int a = 1;
byte b = (byte)a;
ERROR: Useless expression

It's a common mistake. There should be a better compiler error: "Casting by specifying type name in parentheses is not supported."

@exemd exemd changed the title C casting syntax - compiler error C casting syntax - compiler error message Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant