swiftlang/swift

global actor annotations can be applied to inheritance clauses

Ouverte

#86 693 ouverte le 21 janv. 2026

 (4 commentaires) (0 réaction) (1 personne assignée)Swift (10 719 forks)batch import
accepts invalidactor isolationattributesconcurrencygood first issueinheritance clausesswift 6.3type checker

Métriques du dépôt

Stars
 (69 989 étoiles)
Métriques de merge PR
 (Merge moyen 8j 17h) (510 PRs mergées en 30 j)

Description

Description

This code is, as far as I understand, meaningless. It should not be accepted, even though I think it is just a no-op. I bet it is now parsed because of isolated conformances but then just silently dropped further down the line.

Reproduction

class Base {
}

class Derived: @MainActor Base {
}

Expected behavior

This should produce an error.

Environment

Apple Swift version 6.3-dev (LLVM d402ab9729f318e, Swift 2de856568572fc0) Target: arm64-apple-macosx26.0

Additional information

No response

Guide contributeur