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 creating components with only static methods on resources #1530

Merged

Conversation

alexcrichton
Copy link
Member

Previously the resource itself wasn't imported which meant that the [static] function did not pass validation. This commit updates the liveness of these functions to include the resource that the static function is attached to which ensures that the type is emitted during component construction.

Closes #1529

Previously the resource itself wasn't imported which meant that the
`[static]` function did not pass validation. This commit updates the
liveness of these functions to include the resource that the static
function is attached to which ensures that the type is emitted during
component construction.

Closes bytecodealliance#1529
@alexcrichton alexcrichton added this pull request to the merge queue May 3, 2024
Merged via the queue into bytecodealliance:main with commit 1ca522a May 3, 2024
19 checks passed
@alexcrichton alexcrichton deleted the add-more-live-types branch May 3, 2024 19:59
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.

wit-component: static Resource function causes Validate to fail
2 participants