swiftlang/swift

global actor annotations can be applied to inheritance clauses

开放

#86,693 创建于 2026年1月21日

 (4 条评论) (0 个反应) (1 位负责人)Swift (10,719 个派生)batch import
accepts invalidactor isolationattributesconcurrencygood first issueinheritance clausesswift 6.3type checker

仓库指标

星标
 (69,989 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南