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

Change validation message for expressions #313

Open
rherrmannr opened this issue Mar 20, 2019 · 0 comments
Open

Change validation message for expressions #313

rherrmannr opened this issue Mar 20, 2019 · 0 comments

Comments

@rherrmannr
Copy link
Contributor

Current behavior:

// this results an error
var x : int16; x = x * x

The error message: Validation: Function __TIMES__ cannot be used here: Return type incompatible: int32 is not subtype of int16

Expected behavior:
Replace __TIMES__ with the operator and adapt the error message. For example:
Multiply operation cannot be used here. Multiplication results int32 and is not subtype of int16.

This can also be reproduced with other operations, like __PLUS__, __POSTINCREMENT__ and so on.

@tkutz tkutz added the Usability label Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants