File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -905,6 +905,8 @@ unstable-gate ::= '@unstable' '(' feature-field ')'
905
905
feature-field ::= 'feature' '=' id
906
906
since-gate ::= '@since' '(' 'version' '=' '"' <valid semver> '"' ( ',' feature-field )? ')'
907
907
```
908
+ As part of WIT validation, any item that refers to another gated item must also
909
+ be gated.
908
910
909
911
## Package declaration
910
912
@@ -1710,11 +1712,6 @@ interface i {
1710
1712
1711
1713
@since(version = "1.1.0")
1712
1714
g: func();
1713
-
1714
- @since(version = "1.1.0")
1715
- type t1 = u32;
1716
-
1717
- type t2 = t1
1718
1715
}
1719
1716
```
1720
1717
is encoded as the following component when the target version is ` 1.0.0 ` :
@@ -1727,7 +1724,6 @@ is encoded as the following component when the target version is `1.0.0`:
1727
1724
))
1728
1725
)
1729
1726
```
1730
- Note that ` t2 ` is transitively disabled since it relied on the gated ` t1 ` .
1731
1727
If the target version was instead ` 1.1.0 ` , the same WIT document would be
1732
1728
encoded as:
1733
1729
``` wat
@@ -1736,8 +1732,6 @@ encoded as:
1736
1732
(export "ns:p/[email protected] " (instance
1737
1733
(export "f" (func))
1738
1734
(export "g" (func))
1739
- (export $t1 "t1" (type (eq u32)))
1740
- (export "t2" (type (eq $t1)))
1741
1735
))
1742
1736
))
1743
1737
)
You can’t perform that action at this time.
0 commit comments