@@ -260,8 +260,8 @@ Notes:
260
260
* Validation rejects ` resourcetype ` type definitions inside ` componenttype ` and
261
261
` instancettype ` . Thus, handle types inside a ` componenttype ` can only refer
262
262
to resource types that are imported or exported.
263
- * Validation requires all types used in the type of an export are introduced
264
- by an ` exportdecl ` (not an ` importdecl ` ) .
263
+ * Validation requires that all resource types transitively used in the type of an
264
+ export are introduced by a preceding ` exportdecl ` .
265
265
* The uniqueness validation rules for ` externname ` described below are also
266
266
applied at the instance- and component-type level.
267
267
* Validation of ` externdesc ` requires the various ` typeidx ` type constructors
@@ -334,8 +334,8 @@ URL ::= b*:vec(byte) => char(b)*, if char(b)* parses a
334
334
Notes:
335
335
* All exports (of all ` sort ` s) introduce a new index that aliases the exported
336
336
definition and can be used by all subsequent definitions just like an alias.
337
- * Validation requires that any handle type that is part of the type of any
338
- export must refer to a resource type whose index was produced by an ` export ` .
337
+ * Validation requires that all resource types transitively used in the type of an
338
+ export are introduced by a preceding ` exportdecl ` .
339
339
* The "parses as a URL" condition is defined by executing the [ basic URL
340
340
parser] with ` char(b)* ` as * input* , no optional parameters and non-fatal
341
341
validation errors (which coincides with definition of ` URL ` in JS and ` rust-url ` ).
0 commit comments