Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/Distributed/distributed_actor_ban_owned_shared.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ distributed actor First {
distributed func owned(_: __owned Param) async throws {} // expected-error{{cannot declare '__owned' argument '_' in distributed instance method 'owned'}}
distributed func shared(_: __shared Param) async throws {} // expected-error{{cannot declare '__shared' argument '_' in distributed instance method 'shared'}}
distributed func consuming(_: consuming Param) async throws {}
// expected-error@-1{{Copyable types cannot be 'consuming' or 'borrowing' yet}}
// expected-error@-1{{copyable types cannot be 'consuming' or 'borrowing' yet}}
// expected-error@-2{{parameter '' of type '<<error type>>' in distributed instance method does not conform to serialization requirement 'Codable'}}
}

func test(first: First) async throws {
try await first.owned(.init())
try await first.shared(.init())
}
}