mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add experimental flag to turn on just opaque type erasure (#60172)
This was already enabled as part of `-enable-implicit-dynamic` but this new flag allows turning on opaque type erasure all by itself whether or not `dynamic` is added explicitly. rdar://97375478
This commit is contained in:
@@ -678,6 +678,9 @@ 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);
|
||||
|
||||
Opts.EnableAppExtensionRestrictions |= Args.hasArg(OPT_enable_app_extension);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user