Skip to content

🍒 [5.9] Fix case mismatch in test error message expectation #66154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2023
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())
}
}