mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Concurrency] Warn if implied @unchecked Sendable conformances are not
re-stated.
This commit is contained in:
@@ -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}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user