File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ distributed actor First {
1515 distributed func owned( _: __owned Param) async throws { } // expected-error{{cannot declare '__owned' argument '_' in distributed instance method 'owned'}}
1616 distributed func shared( _: __shared Param) async throws { } // expected-error{{cannot declare '__shared' argument '_' in distributed instance method 'shared'}}
1717 distributed func consuming( _: consuming Param ) async throws { }
18- // expected-error@-1{{Copyable types cannot be 'consuming' or 'borrowing' yet}}
18+ // expected-error@-1{{copyable types cannot be 'consuming' or 'borrowing' yet}}
1919 // expected-error@-2{{parameter '' of type '<<error type>>' in distributed instance method does not conform to serialization requirement 'Codable'}}
2020}
2121
2222func test( first: First ) async throws {
2323 try await first. owned ( . init( ) )
2424 try await first. shared ( . init( ) )
25- }
25+ }
You can’t perform that action at this time.
0 commit comments