Bad diagnostic when constructor can't initialize isolated property #74557
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
declarations
Feature: declarations
definite initialization
Area → compiler → SIL: Definite initialization
diagnostics QoI
Bug: Diagnostics Quality of Implementation
init
Feature → declarations: Initializers
SIL
swift 6.0
Description
The following code is not correct, but the diagnostic it produces is very misleading.
Reproduction
Expected behavior
The diagnostic should mention that the non-isolated
init
can't invoke the@MainActor
isolatedf
.Environment
swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: