Skip to content

Commit 0ab926d

Browse files
committed
Clarify type validation rules in the binary format.
This commit clarifies that names within certain type definitions must be unique. It also adds validation of the refines clause in a variant case.
1 parent 0134485 commit 0ab926d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

design/mvp/Binary.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ Notes:
211211
in type definitions from containing components.
212212
* Validation of `externdesc` requires the various `typeidx` type constructors
213213
to match the preceding `sort`.
214+
* Validation of record field names, variant case names, flag names, and enum case
215+
names requires that the name be unique for the record, variant, flags, or enum
216+
type definition.
217+
* Validation of the optional `refines` clause of a variant case requires that
218+
the case index is within bounds for the variant type's cases.
214219

215220

216221
## Canonical Definitions

0 commit comments

Comments
 (0)