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

Show the right fct name in type error messages #5994

Merged

Conversation

jecaro
Copy link
Contributor

@jecaro jecaro commented Nov 16, 2023

fix #1668

I went a bit further than the ticket description and, along with binary operators, I also handled unary operators and string interpolation.

See the tests for examples of error messages.

I suspect we might run into the same kind of issue when desugaring fields access functions for records. However, I don't know Roc well enough yet to be able to see what could be wrong. If someone can think of a case that would raise the same issue with record desugaring, please provide a short example. And I'll fix it as well.

Copy link
Contributor

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fantastic! 😍 😍 😍

Thank you so much, @jecaro! 🎉

@rtfeldman rtfeldman merged commit a2fdd09 into roc-lang:main Nov 18, 2023
14 checks passed
@jecaro jecaro deleted the fix-op-handling-in-type-missmatch-errors branch November 18, 2023 14:51
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

Successfully merging this pull request may close these issues.

Mismatch involving == reported as "isEq"
2 participants