File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
proposals/custom-descriptors Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,12 @@ However, the following new subtyping rules are introduced:
145
145
- A declared supertype of a type without a ` describes ` clause must also
146
146
not have a ` describes ` clause.
147
147
148
+ - With shared-everything-threads,
149
+ a shared described type must have a shared descriptor type and vice versa,
150
+ and an unshared described type must have an unshared descriptor type and vice versa.
151
+ > Note: this could be relaxed to allow unshared described types to have shared descriptor types
152
+ > (but not vice versa) if there is demand for this in the future.
153
+
148
154
The first two rules,
149
155
governing types with or without ` descriptor ` clauses,
150
156
are necessary to ensure the soundness of the ` ref.get_desc ` instruction described below.
You can’t perform that action at this time.
0 commit comments