Skip to content

Commit d8ee6d8

Browse files
committed
Initial support for union declarations
1 parent cf9083c commit d8ee6d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/syntax.grammar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ finalizerBody
16061606
// Struct declaration
16071607

16081608
structDecl {
1609-
attrs? modifier* kw<"struct">
1609+
attrs? modifier* (kw<"struct"> | kw<"union">)
16101610
TypeIdentifier typeParamList? typeParamConstraintsClause*
16111611
formalParams? classBase?
16121612
(structBody ';'? | ';')

0 commit comments

Comments
 (0)