mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Static member referenced were marked as `@Sendable` by `InferSendableFromCaptures` because metatypes used to be always Sendable which is no longer the case, so in order to maintain the source compatibility we need to downgrade missing `@Sendable` to a warning for unapplied static member references. This affects primarily operators at the moment because other static members form a curry thunk with a call inside and would be diagnosed as a capture. Resolves: rdar://150777469
108 KiB
108 KiB