[Concurrency] Warn if implied @unchecked Sendable conformances are not

re-stated.
This commit is contained in:
Holly Borla
2024-02-23 23:29:46 -08:00
parent c7c3eb280e
commit eba4545536
5 changed files with 68 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ class MyActorSubclass1: MyActor { }
// expected-error@-1{{actor types do not support inheritance}}
// expected-error@-2{{type 'MyActorSubclass1' cannot conform to the 'Actor' protocol}}
// expected-error@-3{{non-actor type 'MyActorSubclass1' cannot conform to the 'AnyActor' protocol}}
// expected-warning@-4 {{non-final class 'MyActorSubclass1' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in Swift 6}}
actor MyActorSubclass2: MyActor { } // expected-error{{actor types do not support inheritance}}