mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When evaluating whether code is within a closure that uses concurrency features, use the type of the closure as it's known during type checking, so that contextual information (e.g., it's passed to a `@Sendable` or `async` parameter of function type) can affect the result. This corrects the definition for doing strict checking within a minimal context for the end result of the type-check, rather than it's initial state, catching more issues. Fixes SR-15131 / rdar://problem/82535088.
484 KiB
484 KiB