-
-
Notifications
You must be signed in to change notification settings - Fork 661
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 error message for function call inside constant #2983
Comments
A bit unrelated, but should we update the |
Nice catch! I'll open a separate issue for that |
Thanks folks |
I'd like to make an attempt at solving this! 🤞 |
Thank you! |
I've gotten to a point where I'm getting a nice error message for a valid-looking function call:
Now the question I'm trying to figure out is what to show when there's an invalid-looking function call. Right now I have
This matches the error message we get with incorrect function calls generally (eg An alternative might be to assume that everything from
Any preferences? |
Let's leave it as erroring on the first syntax error (in this case the |
This snippet of code results in this error message:
I think that's because the compiler sees it as:
And not as a function call
Another example is when you wrap the function call in a constructor/list/etc:
The text was updated successfully, but these errors were encountered: