Skip to content

Commit 17deda6

Browse files
committed
[AST] NFC: Add a flag that allows matching to skip any Sendable and `& Sendable compositions
1 parent 427077b commit 17deda6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/AST/Types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ enum class TypeMatchFlags {
347347
AllowCompatibleOpaqueTypeArchetypes = 1 << 5,
348348
/// Ignore the @Sendable attributes on functions when matching types.
349349
IgnoreFunctionSendability = 1 << 6,
350+
/// Ignore `any Sendable` and compositions with Sendable protocol.
351+
IgnoreSendability = 1 << 7,
350352
};
351353
using TypeMatchOptions = OptionSet<TypeMatchFlags>;
352354

0 commit comments

Comments
 (0)