[SR-16009] MainActor static-let initialization not enforced on main thread. #58270
Labels
actor isolation
Feature → concurrency: Actor isolation
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
concurrency
Feature: umbrella label for concurrency language features
let & var
Feature: constant and variable declarations
static declarations
Feature → declarations: Static declarations
swift 5.9
unexpected behavior
Bug: Unexpected behavior or incorrect output
Environment
swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
Additional Detail from JIRA
md5: f6b9b747f9f450df4eddd1f7c0fe8e4f
cloned from:
Issue Description:
While
fooCall()
is enforced on the main thread, the initialization of the static variable is not, which breaks the contract of@MainActor
.The text was updated successfully, but these errors were encountered: