@@ -862,10 +862,10 @@ For example, the following interface has 4 items, 3 of which are gated:
862
862
interface foo {
863
863
a: func();
864
864
865
- @since(version = " 0.2.1" )
865
+ @since(version = 0.2.1)
866
866
b: func();
867
867
868
- @since(version = " 0.2.2" , feature = fancy-foo)
868
+ @since(version = 0.2.2, feature = fancy-foo)
869
869
c: func();
870
870
871
871
@unstable(feature = fancier-foo)
@@ -903,14 +903,14 @@ gate ::= unstable-gate
903
903
| since-gate
904
904
unstable-gate ::= '@unstable' '(' feature-field ')'
905
905
feature-field ::= 'feature' '=' id
906
- since-gate ::= '@since' '(' 'version' '=' '"' <valid semver> '"' ( ',' feature-field )? ')'
906
+ since-gate ::= '@since' '(' 'version' '=' <valid semver> ( ',' feature-field )? ')'
907
907
```
908
908
909
909
As part of WIT validation, any item that refers to another gated item must also
910
910
be compatibly gated. For example, this is an error:
911
911
``` wit
912
912
interface i {
913
- @since(" 1.0.1" )
913
+ @since(version = 1.0.1)
914
914
type t1 = u32;
915
915
916
916
type t2 = t1; // error
@@ -919,11 +919,11 @@ interface i {
919
919
Additionally, if an item is * contained* by a gated item, it must also be
920
920
compatibly gated. For example, this is an error:
921
921
``` wit
922
- @since(" 1.0.2" )
922
+ @since(version = 1.0.2)
923
923
interface i {
924
924
foo: func(); // error: no gate
925
925
926
- @since(" 1.0.1" )
926
+ @since(version = 1.0.1)
927
927
bar: func(); // also error: weaker gate
928
928
}
929
929
```
1730
1730
interface i {
1731
1731
f: func();
1732
1732
1733
- @since(version = " 1.1.0" )
1733
+ @since(version = 1.1.0)
1734
1734
g: func();
1735
1735
}
1736
1736
```
0 commit comments