Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
DougGregor committed May 17, 2024
1 parent d62b565 commit 0f8c478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Concurrency/predates_concurrency_import.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ func acceptSendable<T: Sendable>(_: T) { }
@available(SwiftStdlib 5.1, *)
func test(
ss: StrictStruct, ns: NonStrictClass, oma: OtherModuleActor,
ssOpt: StrictStruct?, nsOpt: NonStrictClass?
ssOpt: StrictStruct?, nsOpt: NonStrictClass?,
ssc: SomeSendableClass,
mpcc: MyPredatesConcurrencyClass
) async {
acceptSendable(ss) // expected-warning{{type 'StrictStruct' does not conform to the 'Sendable' protocol}}
acceptSendable(ns) // silence issue entirely
acceptSendable(ssOpt) // expected-warning{{type 'StrictStruct?' does not conform to the 'Sendable' protocol}}
acceptSendable(ssOpt) // expected-warning{{type 'StrictStruct' does not conform to the 'Sendable' protocol}}
acceptSendable(nsOpt) // silence issue entirely
acceptSendable(oma) // okay
acceptSendable(ssc) // okay
Expand Down

0 comments on commit 0f8c478

Please sign in to comment.