swiftlang/swift

`isolated` keyword incorrectly permitted in inheritance clause

Open

#83,538 建立於 2025年8月5日

在 GitHub 查看
 (1 留言) (0 反應) (1 負責人)Swift (69,989 star) (10,719 fork)batch import
accepts invalidactor isolationcompilerconcurrencygood first issueinheritance clausestype checker

描述

The following compiles but shouldn't since isolated is no longer the syntax for SE-0470:

protocol P {}
struct S: isolated P {}

貢獻者指南