Skip to content

Commit

Permalink
remove empty field list in unions
Browse files Browse the repository at this point in the history
  • Loading branch information
nefelitav committed Jun 6, 2024
1 parent b47e7cf commit 431d398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types-and-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,10 @@ Union Types
.. syntax::

UnionDeclaration ::=
$$union$$ Name GenericParameterList? WhereClause? RecordStructFieldList
$$union$$ Name GenericParameterList? WhereClause? UnionFieldList

UnionFieldList ::=
$${$$ RecordStructField ($$,$$ RecordStructField)* $$,$$? $$}$$
.. rubric:: Legality Rules

:dp:`fls_nskmnzq95yqm`
Expand Down

0 comments on commit 431d398

Please sign in to comment.