mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add experimental feature flag for Implement 'some'
This commit is contained in:
@@ -684,9 +684,12 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.Features.insert(Feature::ForwardModeDifferentiation);
|
||||
if (Args.hasArg(OPT_enable_experimental_additive_arithmetic_derivation))
|
||||
Opts.Features.insert(Feature::AdditiveArithmeticDerivedConformances);
|
||||
|
||||
if (Args.hasArg(OPT_enable_experimental_opaque_type_erasure))
|
||||
Opts.Features.insert(Feature::OpaqueTypeErasure);
|
||||
if (Args.hasArg(OPT_enable_experimental_variadic_generics)){
|
||||
Opts.Features.insert(Feature::ImplicitSome);
|
||||
Opts.Features.insert(Feature::ExistentialAny);
|
||||
}
|
||||
|
||||
Opts.EnableAppExtensionRestrictions |= Args.hasArg(OPT_enable_app_extension);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user