swift
9bd209d3 - Diagnose non-sendable captures more directly.

Commit
3 years ago
Diagnose non-sendable captures more directly. Rather than only checking the sendability of captures at the point of use, diagnose captures uniformly for the closure as a whole. Fixes a case where we were missing a diagnostic due to an explicit capture, rdar://85988937.
Author
Committer
Parents
  • include/swift/AST
    • File
      DiagnosticsSema.def
  • lib/Sema
    • File
      TypeCheckConcurrency.cpp
  • test
    • ClangImporter
      • File
        objc_async.swift
    • Concurrency
      • File
        actor_isolation.swift
      • File
        async_tasks.swift
      • File
        concurrent_value_checking.swift