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

[Fix] Informative error on empty struct. #28193

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Conversation

d0cd
Copy link
Collaborator

@d0cd d0cd commented Jul 3, 2024

This PR updates the type checker to return an informative error if a struct is declared without any members.

Closes AleoNet/snarkVM#2058.

@d0cd d0cd requested a review from evan-schott July 3, 2024 01:14
@cwkang1998
Copy link

Looking forward to have this go in!

Copy link
Collaborator

@bendyarm bendyarm left a comment

Choose a reason for hiding this comment

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

LGTM

@evan-schott evan-schott merged commit 475f6d3 into mainnet Jul 8, 2024
13 checks passed
@evan-schott evan-schott deleted the fix/empty-struct branch July 8, 2024 16:54
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.

[Bug] empty struct causes build to fail with cryptic error message
5 participants