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

Disallow empty types in the component model #1142

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

alexcrichton
Copy link
Member

This updates the component validation phase to account for WebAssembly/component-model#218

This updates the component validation phase to account for
WebAssembly/component-model#218
@pchickey
Copy link
Contributor

WebAssembly/component-model#218 doesn't make the restriction for variant types, but this PR does - where do we reconcile that?

@alexcrichton
Copy link
Member Author

Oh oops sorry yes I forgot to mention, this additionally fixes mistakes where enums/unions accidentally allowed zero cases but they're both required to have at least one case like variants currently require.

@alexcrichton alexcrichton merged commit 69b5213 into bytecodealliance:main Jul 25, 2023
15 checks passed
@alexcrichton alexcrichton deleted the no-empty-types branch July 25, 2023 18:57
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.

2 participants