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

Improve type mismatch error message by providing hints when the solution might be guessable by the compiler #2083

Open
autodidaddict opened this issue Jul 25, 2017 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@autodidaddict
Copy link
Contributor

As a concrete example, when someone mutates a field inside a fun, the error message doesn't suggest that the solution might be to convert it into a ref fun to accommodate the mutation. Instead you often see errors that complain about x is not a subtype of y or that it was looking for this->x and it saw x. These are technically valid error messages, but if the compiler can detect that it's actually just a simple mutability issue, it could provide a hint.

@sheerluck
Copy link

I want to work on it ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants