Skip to content

Commit 0f8c478

Browse files
committed
Fix test case
1 parent d62b565 commit 0f8c478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Concurrency/predates_concurrency_import.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ func acceptSendable<T: Sendable>(_: T) { }
2828
@available(SwiftStdlib 5.1, *)
2929
func test(
3030
ss: StrictStruct, ns: NonStrictClass, oma: OtherModuleActor,
31-
ssOpt: StrictStruct?, nsOpt: NonStrictClass?
31+
ssOpt: StrictStruct?, nsOpt: NonStrictClass?,
3232
ssc: SomeSendableClass,
3333
mpcc: MyPredatesConcurrencyClass
3434
) async {
3535
acceptSendable(ss) // expected-warning{{type 'StrictStruct' does not conform to the 'Sendable' protocol}}
3636
acceptSendable(ns) // silence issue entirely
37-
acceptSendable(ssOpt) // expected-warning{{type 'StrictStruct?' does not conform to the 'Sendable' protocol}}
37+
acceptSendable(ssOpt) // expected-warning{{type 'StrictStruct' does not conform to the 'Sendable' protocol}}
3838
acceptSendable(nsOpt) // silence issue entirely
3939
acceptSendable(oma) // okay
4040
acceptSendable(ssc) // okay

0 commit comments

Comments
 (0)