Skip to content

Commit a901892

Browse files
committed
Update test
1 parent 88e32e4 commit a901892

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 { "" } // expected-warning{{cannot pass argument of non-sendable type 'Message' across actors}}
129+
func send<Message: Codable>(message: Message) throws -> String { "" } // expected-warning{{non-sendable type 'Message' in parameter of actor-isolated instance method 'send(message:)' satisfying non-isolated protocol requirement cannot cross actor boundary}}
130130
}
131131

132132
protocol AsyncThrowsAll {

0 commit comments

Comments
 (0)