Skip to content

Commit a5f62fb

Browse files
authored
Merge pull request #38 from peterhuene/clarify-type-validation
Clarify type validation rules in the binary format.
2 parents 0134485 + 0ab926d commit a5f62fb

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)