Skip to content

Commit 34dfef3

Browse files
authored
enforce enum and variant types being non-empty (#346)
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent c3ef2a9 commit 34dfef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

design/mvp/Binary.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ primvaltype ::= 0x7f => bool
182182
| 0x73 => string
183183
defvaltype ::= pvt:<primvaltype> => pvt
184184
| 0x72 lt*:vec(<labelvaltype>) => (record (field lt)*) (if |lt*| > 0)
185-
| 0x71 case*:vec(<case>) => (variant case*)
185+
| 0x71 case*:vec(<case>) => (variant case+) (if |case*| > 0)
186186
| 0x70 t:<valtype> => (list t)
187187
| 0x6f t*:vec(<valtype>) => (tuple t+) (if |t*| > 0)
188188
| 0x6e l*:vec(<label'>) => (flags l+) (if |l*| > 0)
189-
| 0x6d l*:vec(<label'>) => (enum l*)
189+
| 0x6d l*:vec(<label'>) => (enum l+) (if |l*| > 0)
190190
| 0x6b t:<valtype> => (option t)
191191
| 0x6a t?:<valtype>? u?:<valtype>? => (result t? (error u)?)
192192
| 0x69 i:<typeidx> => (own i)

0 commit comments

Comments
 (0)