Open
Description
Description
a protocol with actor inheritance can be annotated by @MainActor
but it is not possible in my understanding.
- example code
// this protocol can pass compilation though I can't declare actor which conform to `B`.
@MainActor
protocol B: Actor {}
Steps to reproduce
- running above example code and check xcode can compile this code.
Expected behavior
I hope swift will say error against above code.
Environment
- Swift compiler version info: swift 5.7.2
- Xcode version info: Xcode 14.2
- Deployment target: iOS 13
Metadata
Metadata
Assignees
Labels
Feature → concurrency: `actor` declarationsA deviation from expected or documented behavior. Also: expected but undesirable behavior.The Swift compiler itselfFeature: umbrella label for concurrency language featuresBug: Diagnostics Quality of ImplementationBug: Missing warningFeature → type declarations: Protocol declarations