Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Concurrency][SE-0434] Treat captured local globally-isolated functions as Sendable #73562

Open
simanerush opened this issue May 10, 2024 · 0 comments · May be fixed by #73563
Open

[Concurrency][SE-0434] Treat captured local globally-isolated functions as Sendable #73562

simanerush opened this issue May 10, 2024 · 0 comments · May be fixed by #73563
Assignees
Labels
concurrency Feature: umbrella label for concurrency language features

Comments

@simanerush
Copy link
Member

Description

No response

Reproduction

func test() {
  @MainActor func f() {} // ⚠️
  Task {
    await f() // ⚠️
  }
}

Expected behavior

The above should compile under SE-0434, because f is globally-isolated.

Environment

Swift version 6.0-dev (LLVM ceb203a206ed550, Swift a5fdf15)

Additional information

No response

@simanerush simanerush added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels concurrency Feature: umbrella label for concurrency language features and removed bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels May 10, 2024
@simanerush simanerush self-assigned this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
1 participant