From 431d39870565844a85f1404355e59e00809c0fb1 Mon Sep 17 00:00:00 2001 From: nefelitav Date: Thu, 6 Jun 2024 18:11:44 +0200 Subject: [PATCH] remove empty field list in unions --- src/types-and-traits.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types-and-traits.rst b/src/types-and-traits.rst index b918cc56..3c8d419c 100644 --- a/src/types-and-traits.rst +++ b/src/types-and-traits.rst @@ -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`