Files
swift-mirror/include/swift/Basic
Doug Gregor b5cce1f694 [SE-0466] Don't infer @MainActor on types conforming to Sendable
When the default isolation is main-actor, don't infer @MainActor
for a type that conforms to a protocol P in its primary definition when
P inherits from Sendable. Such types should remain non-isolated
because they're highly unlikely to be able to implement the P
conformance (which cannot be isolated).

Put this feature behind a new experimental flag,
SendableProhibitsMainActorInference.

Implements rdar://151029300
2025-06-27 15:14:26 -07:00
..
2023-07-13 11:22:35 -07:00
2025-04-03 16:40:47 -04:00
2024-02-21 11:20:06 -08:00
2023-07-25 12:28:27 -07:00
2025-03-11 17:18:43 -04:00
2024-02-21 11:20:06 -08:00