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

Error message is confusing when functions are used incorrectly #311

Open
tkutz opened this issue Mar 20, 2019 · 1 comment
Open

Error message is confusing when functions are used incorrectly #311

tkutz opened this issue Mar 20, 2019 · 1 comment
Assignees

Comments

@tkutz
Copy link
Contributor

tkutz commented Mar 20, 2019

Current behavior:
Error messages for wrong function usage (incorrect types) do not specify which types are expected. Instead it says: Function length cannot be used here: uint32, A

Expected behavior:
State which types are expected for the used function. Also A is confusing.

Related code:

var x : stdlib.int16 = 10;
var y : stdlib.int16 = x.length();
@wegendt-bosch
Copy link
Contributor

The A here refers to a free type variable. I'll try to improve this error message by looking at possible instances.

@wegendt-bosch wegendt-bosch self-assigned this Mar 25, 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