mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The compiler would previously accept use of `@_inheritActorContext` on a parameter with a synchronous function type which wasn't marked as `@isolated(any)`. That is incorrect because in such cases the attribute has no effect and furthermore would prevent Sendable and isolation checking. Uses like that are currently diagnosed by the type-checker but we need to go one step further and remove the effect in such case to prevent invalid uses. Resolves: rdar://143581268
17 KiB
17 KiB