Skip to content

Commit dac2e98

Browse files
committed
[Basic] NFC: Add ExtensibleEnums feature flag
1 parent 7c258f2 commit dac2e98

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ SUPPRESSIBLE_EXPERIMENTAL_FEATURE(CustomAvailability, true)
451451
/// Be strict about the Sendable conformance of metatypes.
452452
EXPERIMENTAL_FEATURE(StrictSendableMetatypes, true)
453453

454+
/// Allow public enumerations to be extensible by default
455+
/// regardless of whether the module they are declared in
456+
/// is resilient or not.
457+
EXPERIMENTAL_FEATURE(ExtensibleEnums, true)
458+
454459
#undef EXPERIMENTAL_FEATURE_EXCLUDED_FROM_MODULE_INTERFACE
455460
#undef EXPERIMENTAL_FEATURE
456461
#undef UPCOMING_FEATURE

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ UNINTERESTING_FEATURE(SuppressedAssociatedTypes)
122122
UNINTERESTING_FEATURE(StructLetDestructuring)
123123
UNINTERESTING_FEATURE(MacrosOnImports)
124124
UNINTERESTING_FEATURE(AsyncCallerExecution)
125+
UNINTERESTING_FEATURE(ExtensibleEnums)
125126

126127
static bool usesFeatureNonescapableTypes(Decl *decl) {
127128
auto containsNonEscapable =

0 commit comments

Comments
 (0)