Skip to content

Commit cb1a2f8

Browse files
committed
Sendabililty is irrelevant to the property wrapped static properties tests
1 parent 1468b07 commit cb1a2f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Concurrency/experimental_feature_strictconcurrency.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class TestNonsendable {
4646
}
4747

4848
@propertyWrapper
49-
public struct TestSendableWrapper: Sendable {
49+
public struct TestWrapper {
5050
public init() {}
5151
public var wrappedValue: Int {
5252
return 0
@@ -63,8 +63,8 @@ struct TestStatics {
6363
// expected-note@-1{{isolate 'mutable' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'}}
6464
// expected-note@-2{{static property declared here}}
6565
static var computedProperty: Int { 0 } // computed property that, though static, has no storage so is not a global
66-
@TestSendableWrapper static var wrappedSendable: Int // expected-warning{{static property 'wrappedSendable' is not concurrency-safe because it is non-isolated global shared mutable state}}
67-
// expected-note@-1{{isolate 'wrappedSendable' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'}}
66+
@TestWrapper static var wrapped: Int // expected-warning{{static property 'wrapped' is not concurrency-safe because it is non-isolated global shared mutable state}}
67+
// expected-note@-1{{isolate 'wrapped' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'}}
6868
}
6969

7070
@TestGlobalActor

0 commit comments

Comments
 (0)