Skip to content

Commit d02c15d

Browse files
authored
Merge pull request #40 from WebAssembly/tweak-refines-text-format
Tweak text format of refines clause
2 parents a5f62fb + 7093bbe commit d02c15d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

design/mvp/Binary.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ Notes:
215215
names requires that the name be unique for the record, variant, flags, or enum
216216
type definition.
217217
* 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.
218+
the case index is less than the current case's index (and therefore
219+
cases are acyclic).
219220

220221

221222
## Canonical Definitions

design/mvp/Explainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ defvaltype ::= unit
415415
| float32 | float64
416416
| char | string
417417
| (record (field <name> <valtype>)*)
418-
| (variant (case <name> <valtype> (refines <name>)?)+)
418+
| (variant (case <id>? <name> <valtype> (refines <id>)?)+)
419419
| (list <valtype>)
420420
| (tuple <valtype>*)
421421
| (flags <name>*)

0 commit comments

Comments
 (0)