Skip to content

Clarify type import/export rules in new factored-out subsection#673

Open
lukewagner wants to merge 1 commit into
mainfrom
clarify-visibility
Open

Clarify type import/export rules in new factored-out subsection#673
lukewagner wants to merge 1 commit into
mainfrom
clarify-visibility

Conversation

@lukewagner

Copy link
Copy Markdown
Member

Currently Explainer.md mentions the validation rule that imported/exported function types may only transitively refer to resource types that have themselves been imported/exported (thereby giving them an externally-visible name), but there is no mention of the symmetric requirement on the compound value types record, variant, enum and flags (which also need externally-visible names for the sake of bindings generators). This PR intends to plug this spec hole (which has been pointed out a few times recently) to match the existing implementation, as tested by the new WAST test in the PR. But @alexcrichton please LMK if anything doesn't match and then happy to iterate.

@alexcrichton alexcrichton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Text/test look good to me, thanks!

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