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 error message when void values are assigned in record. #2196

Open
jas-valgotar opened this issue Feb 8, 2024 · 0 comments · May be fixed by #2255
Open

Improve error message when void values are assigned in record. #2196

jas-valgotar opened this issue Feb 8, 2024 · 0 comments · May be fixed by #2255

Comments

@jas-valgotar
Copy link
Contributor

For Expression where the user by mistake assigns the void type to the record field,
e.g. {out : Remove()}
we give the below error.
Incompatible type. The item you are trying to put into a record has a type that is not compatible with the record.
which is not actionable. We should tell them which types are expected or least, what is the current type that is not compatible (Ie Void value here).

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 a pull request may close this issue.

1 participant