Skip to content

Commit 4155d24

Browse files
committed
remove workarounds for temporary lack of swift-syntax parity
1 parent 313a05d commit 4155d24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Concurrency/experimental_feature_strictconcurrency.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// expected-error{{new Swift parser generated errors for code that C++ parser accepted}}
21
// RUN: %target-swift-frontend -disable-availability-checking -parse-as-library -enable-experimental-feature StrictConcurrency -enable-experimental-feature GlobalConcurrency -emit-sil -o /dev/null -verify %s
32
// RUN: %target-swift-frontend -disable-availability-checking -parse-as-library -enable-experimental-feature StrictConcurrency=complete -enable-experimental-feature GlobalConcurrency -emit-sil -o /dev/null -verify %s
43
// RUN: %target-swift-frontend -disable-availability-checking -parse-as-library -enable-experimental-feature StrictConcurrency=complete -enable-experimental-feature GlobalConcurrency -emit-sil -o /dev/null -verify -enable-experimental-feature SendNonSendable %s
@@ -49,7 +48,8 @@ final class TestNonsendable {
4948
struct A {
5049
static let immutableExplicitSendable = TestSendable()
5150
static let immutableNonsendableGlobal = TestNonsendable() // expected-warning{{static property 'immutableNonsendableGlobal' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor}}
52-
static nonisolated(unsafe) let immutableNonisolatedUnsafeGlobal = TestNonsendable() // expected-error{{unexpected code '(unsafe)' in variable}}
51+
static nonisolated(unsafe) let immutableNonisolatedUnsafeGlobal = TestNonsendable()
52+
static nonisolated let immutableNonisolatedGlobal = TestNonsendable() // expected-warning{{static property 'immutableNonisolatedGlobal' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor}}
5353
static let immutableInferredSendable = 0
5454
static var mutable = 0 // expected-warning{{static property 'mutable' is not concurrency-safe because it is non-isolated global shared mutable state}}
5555
// expected-note@-1{{isolate 'mutable' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'}}

0 commit comments

Comments
 (0)