swiftlang/swift

`isolated` keyword incorrectly permitted in inheritance clause

Open

#83,538 opened on Aug 5, 2025

View on GitHub
 (1 comment) (0 reactions) (1 assignee)Swift (69,989 stars) (10,719 forks)batch import
accepts invalidactor isolationcompilerconcurrencygood first issueinheritance clausestype checker

Description

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

protocol P {}
struct S: isolated P {}

Contributor guide