Skip to content

Commit 92fca9c

Browse files
committed
Fix test case
(cherry picked from commit 7db313b)
1 parent 6a35b4b commit 92fca9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Distributed/distributed_protocol_isolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protocol Server {
126126
func send<Message: Codable>(message: Message) async throws -> String
127127
}
128128
actor MyServer : Server {
129-
func send<Message: Codable>(message: Message) throws -> String { "" } // okay, asynchronously accessed from clients of the protocol
129+
func send<Message: Codable>(message: Message) throws -> String { "" } // expected-warning{{cannot pass argument of non-sendable type 'Message' across actors}}
130130
}
131131

132132
protocol AsyncThrowsAll {

0 commit comments

Comments
 (0)