How do you augment an enum without adding values? #4356
Labels
augmentations
Issues related to the augmentations proposal.
question
Further information is requested
We allow an augmentation of an enum type to add new values and/or members ("enhanced enums"). The grammar works fine if the augmentation adds both:
But the
enumType
grammar currently requires at least one value declaration. What if you want to augment an enum to add members but no values? What should that look like?The obvious answer is:
But I'm not 100% certain that's unambiguous. If it is ambiguous, we could probably require the
;
:But it would be nice to avoid that if possible. Filing this issue so we don't forget to figure this out.
The text was updated successfully, but these errors were encountered: