swiftlang/swift

`isolated` keyword incorrectly permitted in inheritance clause

Open

#83,538 opened on Aug 5, 2025

 (2 comments) (0 reactions) (1 assignee)Swift (10,719 forks)batch import
accepts invalidactor isolationcompilerconcurrencygood first issueinheritance clausestype checker

Repository metrics

Stars
 (69,989 stars)
PR merge metrics
 (PR metrics pending)

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